ha, i have a problem when the player exit of the vehicle the marker and the blip don't destroy help please
function OnEnter ( thePlayer, seat, jacked )
if ( getElementModel ( source ) == 448 ) then
outputChatBox ( "Job started !",player,255,255,0 )
local am = createMarker(-2075.11133,900.70227,64.13281 - 1, "cylinder", 3, 0, 102, 51, 153)
local ab = createBlip (-2075.11133,900.70227,64.13281, 0, 3, 102,51,153 )
end
end
addEventHandler ( "onVehicleEnter", getRootElement(), OnEnter )
function OnExit ( am ,ab ,thePlayer, seat, jacked )
if ( getElementModel ( source ) == 448 ) then
destroyElement( source )
outputChatBox ( "You quitted your job.",player,255,0,0 )
destroyElement ( ab )
destroyElement ( am )
end
end
addEventHandler ( "onVehicleExit", getRootElement(), OnExit )