Hello friends,
I need your help! I explain that I have an event panel to create careers for players on my freeroam server
Through the panel I must create all racing checkpoint.
And what I want to achieve is that when the player passes over the point, that disappears and the next checkpoint comes out
I leave my code tell me how I can achieve this
Or if they have a similar panel, I would like them to contribute with the
---Server
blip = {}
marker = {}
function event ()
call(getResourceFromName("guitext"),"outputServerGuiText",root,"An event was placed on your Map",0,255,0)
local x, y, z = getElementPosition (source)
local maxBlip = #blip -- with this you have the contents of the table.
local maxMarker = #marker
blip[maxBlip + 1] = createBlip (x, y, z, 49)
marker[maxMarker + 1] = createMarker (x, y, z, "checkpoint", 2, 135, 191, 255, 200)
end
addEvent ("event", true)
addEventHandler ("event", root, event)