• How to make a choice of models by gender DARKRP?
    7 replies, posted
TEAM_CITIZENF = DarkRP.createJob("Citizen", {     color = Color(20, 150, 20, 255),     model = {         "models/humans/modern/female_01.mdl",         "models/humans/modern/female_02.mdl",         "models/humans/modern/female_03.mdl",         "models/humans/modern/female_04.mdl",         "models/humans/modern/female_06.mdl",         "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl",         "models/humans/modern/male_02_01.mdl",         "models/humans/modern/male_03_01.mdl",         "models/humans/modern/male_04_01.mdl",         "models/humans/modern/male_05_01.mdl",         "models/humans/modern/male_06_01.mdl",         "models/humans/modern/male_07_01.mdl"     },     description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],     weapons = {},     command = "citizen",     max = 0,     salary = GAMEMODE.Config.normalsalary,     admin = 0,     vote = false,     hasLicense = false,     candemote = false, category = "Citizens", }) I have scattered in the work and male and female models, I want to do so that the girls would not be given male models and men - female.
You're going to need a lot of models to cover every gender.
I know this. I have a lot model.
Wait, do you mean you want GMOD to detect if the player is a girl or boy in real life, and then give them the models for that gender?
Hah, no ... When spawning, the player is given a choice between the sex. And I gave the code so that you could help me implement it under the check by gender
So you basically want to code your own spawn menu with 2 buttons, Male / Female
Depending on which character system you are using, you might be able to either modify darkrp to show specific models of a job if the person has either value = X or value = Y, or you could create two jobs, one with male and the other one with female models and give a person access to a job, when having either value = x or value = y. However, you must edit lua files to be able to do that, if your current system isn‘t having that feature already.
For the default citizen models you can just use string.find to seperate them. I am not sure what exactly you want.
Sorry, you need to Log In to post a reply to this thread.