Wreck of car
#1

Hi. It is possible to stay destroyed car(now wreck) in that same place without respawn?
Reply
#2

Nope.
Reply
#3

Don't know but maybe you should try to get the destroyed vehicle's coordinates then respawn the burning vehicle there with a low health. You should use in this case:

- GetVehicleHealth: https://sampwiki.blast.hk/wiki/GetVehicleHealth
- SetVehicleHealth: https://sampwiki.blast.hk/wiki/SetVehicleHealth
- GetVehiclePos: https://sampwiki.blast.hk/wiki/Function:GetVehiclePos
- CreateVehicle: https://sampwiki.blast.hk/wiki/CreateVehicle
Reply
#4

Quote:
Originally Posted by Juvanii
Посмотреть сообщение
Don't know but maybe you should try to get the destroyed vehicle's coordinates then respawn the burning vehicle there with a low health. You should use in this case:

- GetVehicleHealth: https://sampwiki.blast.hk/wiki/GetVehicleHealth
- SetVehicleHealth: https://sampwiki.blast.hk/wiki/SetVehicleHealth
- GetVehiclePos: https://sampwiki.blast.hk/wiki/Function:GetVehiclePos
- CreateVehicle: https://sampwiki.blast.hk/wiki/CreateVehicle
That wouldn't be a wreck. There is only one object of a wreck but you can't keep wrecks of vehicles spawned. You can only keep the actual vehicles spawned.
Reply
#5

If you mean the burnt vehicle, than no. It is general system in GTA Sa, you might have seen there's no way to keep the burnt vehicle there, as it respawns 10 secs after explosion.
Reply
#6

Quote:
Originally Posted by Private200
Посмотреть сообщение
If you mean the burnt vehicle, than no. It is general system in GTA Sa, you might have seen there's no way to keep the burnt vehicle there, as it respawns 10 secs after explosion.
It will not respawn if he doesn't put "SetVehicleToRespawn" under "OnVehicleDeath" so he could make what i said above, by getting the burning vehicle's model and create it in same place of the destroying coordinates with low health and all that would be under "OnVehicleDeath"
Reply


Forum Jump:


Users browsing this thread: