Spawning a job vehicle with specific livery


#1

Hey all, I have been looking for a while and can’t seem to find anything (Unless I am blind)

I am basically trying to find a way to spawn a vehicle with a specific livery (Mainly police) from the stations.
I’ve set up the spawner but it spawns the default “Sign_1” livery, is there a way of adding a new entry to spawn “Sign_2” for example? For supervisor skins.

(Image below shows my current config section)


Any help is much appreciated.


#2

I’d recommend just making a seperate vehicles with that individual livery.


#3
SetVehicleLivery(Vehicle vehicle, int liveryIndex)

#4

I would not just because more vehicles = more lagg. @DementedDude has a good answer :slight_smile:


#5

Yeah I guess so, we don’t use a ton of vehicles here so not an issue for us.


#6

Would that be after the name and label on each line?


#7

Just give it a few tries, would probably be something like SetVehicleLivery(veh, 1) or SetVehicleLivery(veh, 2). Depends on the livery in your model files.


#8

Okay, I’ll give it a try.

Thanks for the help!