Hello Guys, I'm studying MTA, and I have a problem with my code look this:
thePed = createPed(12, 0,0,0 )
carIni = createVehicle ( 405, 133, 2218, 35.7,0,0, 180 )
warpPedIntoVehicle ( thePed, carIni )
setElementVelocity (carIni , 0, -0.1, 0)
enyMarker = createMarker(141.8,1944,18, "cylinder" , 15.0, 0, 0, 0, 200)
addEventHandler("onMarkerHit" , enyMarker,
function()
if getElementType(thePed) == "ped" and getPedOccupiedVehicle(thePed) then
outputChatBox("sdsd")
end
end
I need the condition of only ped touch the marker and do something
only ped not the player
Thanks!