I swear it dont works :( I checked few times and my color of checkpoints is the same like on the script and nothing happen
this is code
vehiclesid = {429, 541, 480, 411, 565}
function MarkerHit( hitElement)
if getElementType(hitElement) == "player" then
local r,g,b = getMarkerColor(source)
if r == 255 and g == 0 and b == 0 then
local x,y,z = getElementPosition(hitElement)
if not isPedInVehicle(hitElement) then
local vehicle = createVehicle(vehiclesid[math.random(1,#vehiclesid)],x,y,z,0,0,getPedRotation(hitElement))
warpPedIntoVehicle(hitElement, vehicle)
end
end
end
end
PS: I tried with every codes on this thread