how to AddVehicleComponent 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to AddVehicleComponent onvehiclespawn ? (
/showthread.php?tid=131779)
how to AddVehicleComponent onvehiclespawn ? -
jame20702 - 05.03.2010
how to AddVehicleComponent onvehiclespawn ?
error undifield symbol playerid .
need help
my english is bad.
Re: how to AddVehicleComponent onvehiclespawn ? -
Miguel - 05.03.2010
Quote:
Originally Posted by jame20702
how to AddVehicleComponent onvehiclespawn ?
error undifield symbol playerid .
need help
my english is bad.
|
Change playerid for vehicleid.
Re: how to AddVehicleComponent onvehiclespawn ? -
jame20702 - 05.03.2010
Example Please .
Re: how to AddVehicleComponent onvehiclespawn ? -
bajskorv123 - 05.03.2010
Use it at GameModeInit()
Warning! You must use valid components or server will crash.
Go here for a list of component ids:
https://sampwiki.blast.hk/wiki/Car_Component_ID
Example:
pawn Код:
new tunedcar;//Above main
tunedcar = AddStaticVehicle(....);//Use this at GameModeInit
AddVehicleComponent(tunedcar, ....);//Use this at GameModeInit also