AttachObjectToVehicle problem...
#1

When the vehicle is destroyed or respawned, the attached objects won't be destroyed with it; they will remain stationary at the position the vehicle disappeared and be reattached to the next vehicle to claim the vehicle ID that the objects were attached to.

As the warning from the wikipage says... how can i prevent this thing to happend? I'm using this function to add police siren for a specific vehicle ID (ex ID 10).
Reply
#2

You should be able to fix it with some checks and using https://sampwiki.blast.hk/wiki/OnVehicleDeath and/or https://sampwiki.blast.hk/wiki/OnVehicleSpawn
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)