Models are changing on death and arrest

I am running a DarkRP server. Whenever a player dies, their character/playermodel changes. Same upon arrest but not unarrest (they both teleport the player to and from jail).

What can I do to make the player choose a random playermodel when joining from the default job (Citizens) and stick to that model after death and arrest?

Could you post your code for playermodels? More than likely there’s a table for playermodels and a model is picked randomly on spawn. You could alleviate this by getting the players previous playermodel on death/arrest/unarrest and set their playermodel as that.

This?


TEAM_CITIZEN = DarkRP.createJob("Citizen", {
	color = Color(255, 255, 255, 0),
	model =	{
    "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_05.mdl",
    "models/player/Group01/Female_06.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"
	},