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=445964)



OnVehicleSpawn. - audriuxxx - 23.06.2013

Hi,

This callback will be called, when vehicle will be spawn'ed?

AddStaticVehicleEx(model,X,y,Z,A,0,0,60);

Respawn delay is 60 second now. Then if i go by vehicle then out from server this vehicle will spawn to spawn after 1 minute, and this callback OnVehicleSpawn will be called?


Re: OnVehicleSpawn. - Pettersen - 23.06.2013

No, Its going under OnGameModeInit !


Re: OnVehicleSpawn. - audriuxxx - 23.06.2013

I don't ask, where i have put this, and where you find am asking it? am asking about OnVehicleSpawn callback does he get called, when respawn delay time pass.


Re: OnVehicleSpawn. - IstuntmanI - 23.06.2013

It isn't being called at AddStaticVehicleEx/CreateVehicle, it is called only when the vehicle is respawned (respawn delay, or after death).


Re: OnVehicleSpawn. - Kar - 23.06.2013

OnVehicleSpawn is actually OnVehicleReSpawn