Hello i'm trying to make triggerServerEvent but when i try to transfer data it's show that massage : clientside element 'marker' @argument 3
what that even mean?
--Client side ---
GasMarker1 =nil
GasMarker2 =nil
GasMarker3 = nil
function createGasMarker ()
outputChatBox ("تم انشاء ماركرات المحطات",28,181,23)
GasMarker1 = createMarker (619.70190429688 , 1684.1682128906 , 4.9921875, "cylinder",2.0,255,255,255)
GasMarker2 = createMarker (617.69458007813 , 1686.0867919922 , 4.9921875 ,"cylinder",2.0,255,255,255)
GasMarker3 = createMarker (621.77709960938 , 1681.1126708984 , 4.9921875, "cylinder",2.0,255,255,255)
end
addEventHandler ("onClientResourceStart", root, createGasMarker)
function setGasMarkersVisible ()
name = "Come!"
triggerServerEvent ("setVisible", root,GasMarker1 )
end
addEventHandler("onClientResourceStart" , root, setGasMarkersVisible)
-- Server Side --
function setMarkerVisible ()
--
end
addEvent("setVisible",true)
addEventHandler ("setVisible", root, setMarkerVisible)