Vehicle getting auto respawned?
#1

So the problem is kinda weird. There are few added vehicles around the city using following code.

Код:
CreateVehicle(518, 1411.2491, -2347.3430, 13.2101, 180.0483, 9, 39, 600);
Whenever a player driving it, it gets destroyed (hidden). It's not getting re-spawned either. What could be the problem?

I have tried adding a vehicle with no respawn delay too. It still getting removed. There's no exact time it's getting removed. It's random.
Reply
#2

PHP код:
CreateVehicle(5181411.2491, -2347.343013.2101180.0483939, -1); 
for no respawn delay ^^

if car dead then it's got respawned

NOTE: if you setted a respawn_delay, the passanger not count! the car got respawned if there no DRIVER in
Reply
#3

Quote:
Originally Posted by Yaa
Посмотреть сообщение
PHP код:
CreateVehicle(5181411.2491, -2347.343013.2101180.0483939, -1); 
for no respawn delay ^^

if car dead then it's got respawned

NOTE: if you setted a respawn_delay, the passanger not count! the car got respawned if there no DRIVER in
I tried this already. It's still getting removed. Not RESPAWNING either. That's the problem. Not sure where it's going.
Reply
#4

Well convert the CreateVehicle to AddStaticVehicleEx
And then set the respawn time to -1 that might help.
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Reply
#5

Anything in your script that can cause a vehicle to destroy?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)