SA-MP Forums Archive
Created Car - 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: Created Car (/showthread.php?tid=333464)



Created Car - RaulSTARs - 11.04.2012

Hello , exist an way to create an new car with AddStaticVehicle to be after the Ownable Cars ? Because if I create an new Vehicle all cars will get crazy, first ownablecar is another car (at name) etc.

And I want if I can create an StaticVehicle to be added after id 325 (example)

It's possible?


Re: Created Car - Jonny5 - 11.04.2012

just use https://sampwiki.blast.hk/wiki/CreateVehicle
AFTER you have loaded all your ownable cars,

AddStaticVehicle must be used in OnGameModeInit() and OnFilterScriptInit()


Re: Created Car - RaulSTARs - 11.04.2012

It is after LoadCar.

Some cars i have with CreateVehicle but ... And i tryed with CreateVehicle ... same


LoadCar is 10.000 line

And CreateVehicle 11-12000


Re: Created Car - TzAkS. - 11.04.2012

Yes you can like this
AddStaticVehicle(CarInfo...//Ownablecars
And then
AddStaticVehicle(model...//your car


Re: Created Car - Jonny5 - 11.04.2012

you cant use AddStaticVehicle though
you must use CreateVehicle


Re: Created Car - RaulSTARs - 11.04.2012

TzAks , ownablecars is into an cars.cfg

Jonny i did with CreateVehicle , don't work


Re: Created Car - Jonny5 - 11.04.2012

i see what TzAKs is saying

well find in your code where it is loading them from cars.cfg
add then add your new car after that loop runs.