Jump to content

DynamicBan

Members
  • Posts

    31
  • Joined

  • Last visited

DynamicBan's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Nope everything works fine, thnx.
  2. Works fine, thnx once again.
  3. Same debug I removed (), but what do you mean by placing it under the robMarker.
  4. Done that but now im getting this debug
  5. Uh ye 1 more. When the player enters the robmarker he gets an object attached to him. Atleast that how it should work but im getting this error Line 44 @ ss, the code below line 19 function createBlips ( ) local vehicle = getElementModel ( source ) if ( getElementModel ( source ) == 498 ) then loc = math.random ( #locations ) robMarker = createMarker ( locations[loc][1], locations[loc][2], locations[loc][3], "cylinder", 1.5, 255, 255, 255, 150 ) setElementInterior ( robMarker, locations[loc][7] ) startBlip = createBlip ( locations[loc][4], locations[loc][5], locations[loc][6], 32 ) end end addEventHandler ("onClientVehicleEnter", getRootElement (), createBlips ) function hitElement ( hitPlayer, matchingDimension ) if ( hitPlayer ) then local x, y, z = getElementPosition ( hitPlayer ) local object = createObject ( 1429, x, y, z-5 ) attachElements ( object, hitPlayer, 0, 0.5, 0 ) end end addEventHandler ( "onClientMarkerHit", robMarker (), hitElement )
  6. Thanks again, its working now.
  7. getting those debug messages again local locations = { -- rob markers for EastLosSantos house --House EastLosSantos blip { 2341.66602, -1186.37573, 1026.97656, 5, 2351.9699707031, -1169.8599853516, 28.035507202148 }, { 2348.66870, -1186.74658, 1026.97656, 5, 2351.9699707031, -1169.8599853516, 28.035507202148 }, { 2322.23877, -1183.75879, 1026.97656, 5, 2351.9699707031, -1169.8599853516, 28.035507202148 }, -- rob markers for IdleWood house --House IdleWood blip { 326.66299, 1116.79797, 1082.88281, 5, 2166.1999511719, -1671.4699707031, 15.073687553406 }, { 316.13690, 1117.17993, 1082.88281, 5, 2166.1999511719, -1671.4699707031, 15.073687553406 }, { 309.62006, 1124.17896, 1082.88281, 5, 2166.1999511719, -1671.4699707031, 15.073687553406 }, -- rob markers for WilloField house --House WilloField blip { 2282.04590, -1135.85901, 1049.89844, 11, 2483.3798828125, -1996.1899414063, 13.834323883057 }, { 2282.36694, -1137.74646, 1049.89844, 11, 2483.3798828125, -1996.1899414063, 13.834323883057 }, { 2285.44629, -1136.67346, 1049.89844, 11, 2483.3798828125, -1996.1899414063, 13.834323883057 }, -- rob markers for Ganton house --House Ganton blip { 248.23495, 301.60382, 998.14844, 1, 2402.5183105469, -1715.6148681641, 14.1328125 }, { 243.82597, 301.51428, 998.14844, 1, 2402.5183105469, -1715.6148681641, 14.1328125 }, { 248.83932, 305.45200, 998.14844, 1, 2402.5183105469, -1715.6148681641, 14.1328125 }, -- rob markers for CJ house --house CJ blip { 2491.69287, -1694.92102, 1013.74792, 3, 2495.330078125, -1690.75, 14.765625 }, { 2500.01343, -1711.35229, 1013.74219, 3, 2495.330078125, -1690.75, 14.765625 }, { 2494.01831, -1700.84949, 1017.34375, 3, 2495.330078125, -1690.75, 14.765625 } function createBlips ( ) local vehicle = getElementModel ( source ) if ( getElementModel ( source ) == 498 ) then loc = math.random ( #locations ) robMarker = createMarker (locations[loc][1], locations[loc][2], locations[loc][3], locations[loc][4], "cylinder", 1.5, 255, 255, 255, 150) setElementInterior ( robMarker, 1 ) setElementInterior ( robMarker, 3 ) setElementInterior ( robMarker, 5 ) setElementInterior ( robMarker, 11 ) startBlip = createBlip (locations[loc][5], locations[loc][6], locations[loc][7], 32) end end addEventHandler ("onClientVehicleEnter", getRootElement (), createBlips )
  8. local locations = { -- rob markers for EastLosSantos house --House EastLosSantos blip { 2341.66602, -1186.37573, 1026.97656, 2351.9699707031, -1169.8599853516, 28.035507202148 }, { 2348.66870, -1186.74658, 1026.97656, 2351.9699707031, -1169.8599853516, 28.035507202148 }, { 2322.23877, -1183.75879, 1026.97656, 2351.9699707031, -1169.8599853516, 28.035507202148 }, -- rob markers for IdleWood house --House IdleWood blip { 326.66299, 1116.79797, 1082.88281, 2166.1999511719, -1671.4699707031, 15.073687553406 }, { 316.13690, 1117.17993, 1082.88281, 2166.1999511719, -1671.4699707031, 15.073687553406 }, { 309.62006, 1124.17896, 1082.88281, 2166.1999511719, -1671.4699707031, 15.073687553406 }, -- rob markers for WilloField house --House WilloField blip { 2282.04590, -1135.85901, 1049.89844, 2483.3798828125, -1996.1899414063, 13.834323883057 }, { 2282.36694, -1137.74646, 1049.89844, 2483.3798828125, -1996.1899414063, 13.834323883057 }, { 2285.44629, -1136.67346, 1049.89844, 2483.3798828125, -1996.1899414063, 13.834323883057 }, -- rob markers for Ganton house --House Ganton blip { 248.23495, 301.60382, 998.14844, 2402.5183105469, -1715.6148681641, 14.1328125 }, { 243.82597, 301.51428, 998.14844, 2402.5183105469, -1715.6148681641, 14.1328125 }, { 248.83932, 305.45200, 998.14844, 2402.5183105469, -1715.6148681641, 14.1328125 }, -- rob markers for CJ house --house CJ blip { 2491.69287, -1694.92102, 1013.74792, 2495.330078125, -1690.75, 14.765625 }, { 2500.01343, -1711.35229, 1013.74219, 2495.330078125, -1690.75, 14.765625 }, { 2494.01831, -1700.84949, 1017.34375, 2495.330078125, -1690.75, 14.765625 } } function createBlips ( ) local vehicle = getElementModel ( source ) if ( getElementModel ( source ) == 498 ) then loc = math.random ( #locations ) robMarker = createMarker (locations[loc][1], locations[loc][2], locations[loc][3], "cylinder", 1.5, 255, 255, 255, 150) setElementInterior ( robMarker, 1 ) setElementInterior ( robMarker, 3 ) setElementInterior ( robMarker, 5 ) setElementInterior ( robMarker, 11 ) startBlip = createBlip (locations[loc][4], locations[loc][5], locations[loc][6], 32) end end addEventHandler ("onClientVehicleEnter", getRootElement (), createBlips )
  9. Works, thanks alot. But the marker is a checkpoint right now, I tried robMarker = createMarker (locations[loc][1], locations[loc][2], locations[loc][3], "cylinder", 1.5, 255, 255, 255, 150) to change it into a cylinder but then the marker doesn't show up. The markers still don't spawn at the blip, they spawn in a different house than they should. I took your table and changed it in a useful table. If so then you gave me incorrect marker locations. Reinsert the marker locations till those are correct. Those locations are correct. Its working now. Thanks for your help anyway,
  10. I did that local locations = { -- rob markers for EastLosSantos house { 2341.66602, -1186.37573, 1026.97656, 0, 5, 2351.9699707031, -1169.8599853516, 28.035507202148 }, { 2348.66870, -1186.74658, 1026.97656, 0, 5, 2351.9699707031, -1169.8599853516, 28.035507202148 }, { 2322.23877, -1183.75879, 1026.97656, 0, 5, 2351.9699707031, -1169.8599853516, 28.035507202148 }, -- rob markers for IdleWood house { 326.66299, 1116.79797, 1082.88281, 0, 5, 2166.1999511719, -1671.4699707031, 15.073687553406 }, { 316.13690, 1117.17993, 1082.88281, 0, 5, 2166.1999511719, -1671.4699707031, 15.073687553406 }, { 309.62006, 1124.17896, 1082.88281, 0, 5, 2166.1999511719, -1671.4699707031, 15.073687553406 }, -- rob markers for WilloField house { 2282.04590, -1135.85901, 1049.89844, 1, 11, 2483.3798828125, -1996.1899414063, 13.834323883057 }, { 2282.36694, -1137.74646, 1049.89844, 1, 11, 2483.3798828125, -1996.1899414063, 13.834323883057 }, { 2285.44629, -1136.67346, 1049.89844, 1, 11, 2483.3798828125, -1996.1899414063, 13.834323883057 }, -- rob markers for Ganton house { 248.23495, 301.60382, 998.14844, 0, 1, 2402.5183105469, -1715.6148681641, 14.1328125 }, { 243.82597, 301.51428, 998.14844, 0, 1, 2402.5183105469, -1715.6148681641, 14.1328125 }, { 248.83932, 305.45200, 998.14844, 0, 1, 2402.5183105469, -1715.6148681641, 14.1328125 }, -- rob markers for CJ house { 2491.69287, -1694.92102, 1013.74792, 0, 3, 2495.330078125, -1690.75, 14.765625 }, { 2500.01343, -1711.35229, 1013.74219, 0, 3, 2495.330078125, -1690.75, 14.765625 }, { 2494.01831, -1700.84949, 1017.34375, 0, 3, 2495.330078125, -1690.75, 14.765625 } } function createBlips ( ) local vehicle = getElementModel ( source ) if ( getElementModel ( source ) == 498 ) then loc = math.random ( #locations ) robMarker = createMarker (locations[loc][1], locations[loc][2], locations[loc][3], locations[loc][4], locations[loc][5]) setElementInterior ( robMarker, 3 ) setElementInterior ( robMarker, 1 ) setElementInterior ( robMarker, 11 ) setElementInterior ( robMarker, 5 ) startBlip = createBlip(locations[loc][6], locations[loc][7], locations[loc][8]) end end addEventHandler ("onClientVehicleEnter", getRootElement (), createBlips )
  11. That aint going to work, because the markers are inside in an int. The markers still don't spawn at the blip, they spawn in a different house than they should.
  12. I did that. ( check first post )
  13. It creates the blip at random places around the map. It's not creating the blip at the house, but instead at the markers.
×
×
  • Create New...