Yimura
September 5, 2020, 8:23pm
1
So I’m try to apply built-in liveries from GTA V to a vehicle and this doesn’t appear to work.
I’m using something along the lines of:
SetVehicleModKit(entVehicle, 0)
// Code
SetVehicleLivery(entVehicle, intLivery)
Are there some other requirements before this works?
1 Like
Yimura
September 7, 2020, 8:15am
2
The SetVehicleLivery native does nothing, however using the normal SetVehicleMod(entVehicle, 48, intLivery) works.
SetVehicleModKit(entVehicle, 0)
-- SetVehicleLivery(ent, tempCarData["Livery"]) -- does not work
SetVehicleMod(ent, 48, tempCarData["Livery"])
Partial solution, look further down for a full solution.
2 Likes
nta
September 7, 2020, 9:32am
3
The game has multiple different livery systems, R* switched at some point and everything after that uses the newer system.
Yimura
September 7, 2020, 10:12am
4
Thanks for your response, I’ve looked it up and certain vehicles use GetVehicleLiveryCount and others use GetNumVehicleMods. I’ll use these to differentiate between new and old.
1 Like