Jump to content

eXecuteR

Members
  • Posts

    8
  • Joined

  • Last visited

Details

  • Interests
    DM player |DST| clan

eXecuteR's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Thx u alot i appreciate it
  2. sorry if i wrote this topic in the wronge section i made a function in clientside which its include arrays, how would i save those arrays to SQL(Create SQL) function arrays() Markers_Pos = { x_pos = {}, y_pos = {}, z_pos = {} } Markers = {} end arrays() i = i + 1 for k,v in pairs(Markers) do local Get_x, Get_y, Get_z = getElementPosition(v) Markers_Pos.x_pos[i] = Get_x Markers_Pos.y_pos[i] = Get_y Markers_Pos.z_pos[i] = Get_z end
  3. ok i did used marker3 as you wrote before and got that error... is there is any other way to do it?
  4. loool its worked but still have the same error bad argument 'isElementWhithinMarker' if i changed ((addEventHandler ("onclientMarkerhit, marker3,)) to addEventHandler ("onclientMarkerhit, root, so whats the problem then
  5. addEventHandler ("onclientMarkerhit, marker3, bad argument @ 'addEventHandler' [Expected element at argument 2 ,got nil]
  6. [lua] isElementWithinMarker function() marker2 = createMarker(3039.5, -1653.1999511719, 181.69999694824, "corona", 2) box1 = createObject(9131,3040.8000488281, -1653, 182.69999694824, 50.250061035156 ,90.000030517578, 89.999969482422) box2= createObject(9131,3040.3879394531, -1653, 183.19999694824, 50.250061035156 ,90 , 89.994506835938) end) function(player) local marker3 if player ~= localPlayer then return end if isElementWithinMarker (player,marker2) then marker3 = createMarker ( 3013.8999023438, -1653, 172.30000305176, "corona", 2) end return marker3 end) addEventHandler("onClientMarkerHit", root, function(player) if player ~= localPlayer then return end if isElementWithinMarker(player,marker3) then setElementCollisionsEnabled(box1,false) end<<<<< if isElementWithinMarker (player,marker3) then setElementCollisionsEnabled(box2,false) end<<<<< end) [lua]
  7. isElementWithinMarker function(player) local marker3 if player ~= localPlayer then return end if isElementWithinMarker (player,marker2) then marker3 = createMarker ( 3013.8999023438, -1653, 172.30000305176, "corona", 2) end return marker3 end) addEventHandler("onClientMarkerHit", root, function(player) if player ~= localPlayer then return end if isElementWithinMarker(player,marker3) then setElementCollisionsEnabled(box1,false) end<<<<< if isElementWithinMarker (player,marker3) then setElementCollisionsEnabled(box2,false) end<<<<< end)
×
×
  • Create New...