Hi there,
I am busy with a little script, but i got one problem, i wanna use a marker to attach a vehicle to a vehicle, i wanna have a callback that is that the vehicle the source is, so i go search on MTA wiki if there is a callback function for: onVehicleMarkerHit, but there is'nt, only onMarkerHit, and OnPlayerMarkerhit. How i can script this so simple has possible?
function enterVehicle ( player, seat, jacked )
if ( getVehicleID ( source ) == 476 ) then
outputChatBox ("You are enter a Ruslter!.")
local x, y, z = getElementPosition( source )
local rcbaron = createVehicle ( 464, x, y, z - 2 )
attachElementToElement( rcbaron, source, 0, 0, -2 )
end
end
addEventHandler ( "onVehicleEnter", getRootElement(), enterVehicle )
Thanks,