I have been trying to use this script:
viewtopic.php?f=91&t=32662&p=344109&hilit=Attach#p344109
But the problem is, that when I once get it to attach, and detach after that, it wont attach to it anymore, before I restart script.
function attach ( hitElement )
if ( getElementType( hitElement ) == "vehicle" ) then
attachElements ( arrow1, cH, -1417 - hullx, 531 - hully, 18.5 - hullz )
attachElements ( hitElement, arrow1 )
do
end
end
addEventHandler ( "onMarkerHit", theMarker, attach )
function detach ( thePlayer, commandName )
local pVehicle = getPedOccupiedVehicle( thePlayer )
detachElements ( pVehicle )
end
addCommandHandler ( "detach", detach )
That is the code, could anyone please tell me, if there is some kind of loop thing or something, which I can use there.
Thanks in advance
Tombaa