Create vehicle and addstaticvehicleex
#1

Hi,

What is difference between this? i know that addstaticvehicleex or addstaticvehicle can by used ongamemodeinit only, but if i create vehicles ongamemodeinit with createvehicle it make something different?
Reply
#2

As far as I know not really.
Reply
#3

There is no difference between AddStaticVehicleEx and CreateVehicle other than that static vehicles cannot be created during runtime (only under OnGameModeInit) and that trains cannot be spawned with CreateVehicle.

There is however a slight difference between AddStaticVehicle and AddStaticVehicleEx. The difference is in the parameters:
PHP код:
AddStaticVehicle(modelidFloat:xFloat:yFloat:zFloat:acolor1color2);
AddStaticVehicleEx(modelidFloat:xFloat:yFloat:zFloat:acolor1color2respawn_delayaddsiren 0); 
AddStaticVehicle has no respawn_delay parameter nor an add_siren parameter.

https://sampwiki.blast.hk/wiki/CreateVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)