how would i go about editing the cars that it spawns from this menu and can you change the name within the menu?>
a massive thanks for any help
how would i go about editing the cars that it spawns from this menu and can you change the name within the menu?>
a massive thanks for any help
How do you mean editing the cars that is spawns? Like this: change police2 into police3?
And yes you can change the name within the menu, I suppose you mean the car names though.
It depends if you have Config.EnableSocietyOwnedVehicles = true
or not in the config file.
If it’s true then:
scroll down in your config file until.
AuthorizedVehicles = {
{ name = 'police', label = 'Give' },
{ name = 'police2', label = 'A' },
{ name = 'police3', label = 'Custom label' },
{ name = 'police4', label = 'To' },
{ name = 'policeb', label = 'These' },
{ name = 'policet', label = 'Cars' },
},
So if you wanna add a car to the list, copy a line. Change the name to the model name of the vehicle.
In the label you can write what ever you want, if it’s inside of ’ '.
If Config.EnableSocietyOwnedVehicles = false
then you should do it like this:
Go to client/main.lua
somewhere around line: 550
(Could be different in your case though)
You will see this:
local elements = {}
table.insert(elements, { label = 'Touran 2016', value = 'police' })
table.insert(elements, { label = 'Mercedes Vito', value = 'police2' })
table.insert(elements, { label = 'Transport 6', value = 'policeold2'})
table.insert(elements, { label = 'Audi a6', value = 'fbi2'})
if PlayerData.job.grade_name == 'sergeant' then
-- Motor moet nog politie skin krijgen!!
table.insert(elements, { label = 'Moto', value = 'policeb'})
table.insert(elements, { label = 'Dienst Justitiele Inrichting', value = 'riot'})
end
if PlayerData.job.grade_name == 'lieutenant' then
-- Motor moet nog politie skin krijgen!!
table.insert(elements, { label = 'Moto', value = 'policeb'})
table.insert(elements, { label = 'Dienst Justitiele Inrichting', value = 'riot'})
table.insert(elements, { label = 'Unmarked Audi', value = 'fbi'})
-- Onherkenbaar Volvo Blauw
-- table.insert(elements, { label = 'FBI SUV', value = 'fbi2'})
end
if PlayerData.job.grade_name == 'boss' then
-- Motor moet nog politie skin krijgen!!
table.insert(elements, { label = 'Moto', value = 'policeb'})
table.insert(elements, { label = 'Dienst Justitiele Inrichting', value = 'riot'})
table.insert(elements, { label = 'Unmarked Audi', value = 'fbi'})
-- Onherkenbaar Volvo Blauw
-- table.insert(elements, { label = 'FBI SUV', value = 'fbi2'})
end
So here it’s kinda the same thing, the big difference here is that you work with the job grades. So you should think which cars should be available for a certain job grade.
You can just change the label to give it a custom name. Or change the value if you want to set it to a different vehicle model.