Created Car
#1

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?
Reply
#2

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

AddStaticVehicle must be used in OnGameModeInit() and OnFilterScriptInit()
Reply
#3

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
Reply
#4

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

you cant use AddStaticVehicle though
you must use CreateVehicle
Reply
#6

TzAks , ownablecars is into an cars.cfg

Jonny i did with CreateVehicle , don't work
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)