Few questions about darkRP custom jobs and cars.

Hey, I am adding custom jobs to darkRP for my server and custom vehicles. And well I got a problem.

[lua]TEAM_CITIZEN = AddExtraTeam(“Civilian”, Color(20, 150, 20, 255), “models/player/group01/male_01.mdl”, [[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {}, “citizen”, 0, 45, 0, false, false)[/lua]

And it sets 1 specific model for citizen. Is there any way to set few models so that when player spawns he gets random model picked as citizen? Because it’s boring to have 1 same model for all citizens.

And vehicles: how do I add skins to menu?

[lua]AddCustomVehicle(“GTA IV Minivan”, “models/Inaki/gtaiv/vehicles/minivan.mdl”, 80000, [/lua]
That model originally has like 8 skins, how do I write that line so that it sets specific skin and not just the 0th skin?

How do I set in maps custom props and so that they save each time when server restarts? Like bank machines and things like that?

  1. Update to the newest version of DarkRP.
    There you can add multiple models.

models = {“model_name”, “model_name2”}

player:SetModel(table.Random(models))

[lua]
function RandomModel()
local models = {}
models[1] = “models/player/group01/male_01.mdl”
models[2] = “models/player/group01/male_02.mdl”
models[3] = “models/player/group01/male_03.mdl”
local PickAModel = table.Random(models)
return PickAModel;
end

TEAM_CITIZEN = AddExtraTeam(“Civilian”, Color(20, 150, 20, 255), RandomModel(), [[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {}, “citizen”, 0, 45, 0, false, false)
[/lua]

In the latest DarkRP it has this aswell for the normal code
[lua]TEAM_CITIZEN = AddExtraTeam(“Citizen”, Color(20, 150, 20, 255), {
“models/player/Group01/Female_01.mdl”,
“models/player/Group01/Female_02.mdl”,
“models/player/Group01/Female_03.mdl”,
“models/player/Group01/Female_04.mdl”,
“models/player/Group01/Female_06.mdl”,
“models/player/Group01/Female_07.mdl”,
“models/player/group01/male_01.mdl”,
“models/player/Group01/Male_02.mdl”,
“models/player/Group01/male_03.mdl”,
“models/player/Group01/Male_04.mdl”,
“models/player/Group01/Male_05.mdl”,
“models/player/Group01/Male_06.mdl”,
“models/player/Group01/Male_07.mdl”,
“models/player/Group01/Male_08.mdl”,
“models/player/Group01/Male_09.mdl”},
[[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {}, “citizen”, 0, 45, 0, false, false)[/lua]

I know it’s a bit late but that’s just another variation of how it can be done

zzaacckk’s code made it so they don’t have an option to pick a model, it gets picked randomly. Yours gives them a menu.