SA-MP Forums Archive
OnVehicleSpawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnVehicleSpawn (/showthread.php?tid=356060)



OnVehicleSpawn - milanosie - 02.07.2012

Quick Question,

Is OnVehicleSpawned also being called at
pawn Код:
AddStaticVehicle
Or only at

pawn Код:
CreateVehicle



Re: OnVehicleSpawn - Gangster-rocks - 02.07.2012

you have to use
pawn Код:
CreateVehicle



Respuesta: OnVehicleSpawn - [DOG]irinel1996 - 02.07.2012

I thought it was called when a vehicle, respawns. Let me check.

EDIT:
I think it works with both functions, because it's called when a vehicle respawns, not created.
https://sampwiki.blast.hk/wiki/OnVehicleSpawn

Best regards!

_____________________
EDIT:
@zde5: I don't think so, if a vehicle dies it's called too when it respawns again.


Re: OnVehicleSpawn - zde5 - 02.07.2012

i think that it is only called when u use SetVehicleToRespawn