Hey, I want it so that when the player enters the marker it warps the Created ped into the vehicle?
client
pickPed = createMarker(1790.33105, -1909.81689, 13.03162, "cylinder", 1.5, 255, 0, 0)
function warpit()
triggerServerEvent("doIt", source, "pickPed")
end
addEventHandler("onClientMarkerHit", root, warpit)
server
createMarker(1777.95203, -1892.48059, 12.38782, "cylinder", 0.9, 255, 0, 0)
taxiPed = createPed(252, 1789.95386, -1910.94507, 13.03228)
taxiVeh = createVehicle(420, 1777.95203, -1892.48059, 12.38782)
function pickPed()
warpPedIntoVehicle( taxiPed, taxiVeh, 2)
end
addEvent("doIt", true)
addEventHandler("doIt", root, pickPed)
If it it possible, could you make it so that the ped is warped in the current vehicle the player is in? Instead of the createVeh?