Need Help Adding Uniforms to esx_policejob and esx_ambulance

Hi all need help with adding uniforms to

esx_policejob
esx_ambulance
I have looked everywhere and this is my last resort I don’t want to have to add Vmenu or Lambda in my server thank you

2 Likes

I’m looking for here too nobody resp is nothing I find on esx_ambulance I managed on esx_policejob no

How did you do it on the police job?

1 Like

esx_ambulance yes police no :frowning:

Yeah how did you do the ambulance

Yeah, I know wow to do it, and over at all, never add Vmenu or something like that because could give lots of problems, said this lets go:

1: If you want to add uniforms, but with the freemode (default skin), you should follow the following tutorial and skip to the point 3: [How-to] Streaming addon clothes and ped props for mp freemode models

  1. If you want to stream addon peds like geo or swat you can do it very easy, rename the ped as how is called in the game. For example swat: <S_M_Y_Swat_01> and police: <s_m_y_cop_01>

  2. Then create a new resource called however you want, for example <Police_wear>, then create a document called <__resoucre.lua> and let it empty

  3. Create a folder called and put all the archives there (they should be .yft or .ytd), in my case are like that:
    Screenshot_3

  4. Then start the resource in the server.cfg as

  5. OPTIONAL: If you want to edit the name or add more than default you can go to the job, in my case esx_policejob/client/main.lua and go to lines 81 to 85 more or less and there you can change the model as this:

The code:
function OpenCloakroomMenu()
local playerPed = PlayerPedId()
local grade = PlayerData.job.grade_name

local elements = {
	{ label = _U('citizen_wear'), value = 'citizen_wear' },
	{ label = _U('bullet_wear'), value = 'bullet_wear' },
	{ label = _U('gilet_wear'), value = 'gilet_wear' }
}

if grade == 'recruit' then
	table.insert(elements, {label = _U('police_wear'), value = 'recruit_wear'})
elseif grade == 'officer' then
	table.insert(elements, {label = _U('police_wear'), value = 'officer_wear'})
elseif grade == 'sergeant' then
	table.insert(elements, {label = _U('police_wear'), value = 'sergeant_wear'})
elseif grade == 'intendent' then
	table.insert(elements, {label = _U('police_wear'), value = 'intendent_wear'})
elseif grade == 'lieutenant' then
	table.insert(elements, {label = _U('police_wear'), value = 'lieutenant_wear'})
elseif grade == 'chef' then
	table.insert(elements, {label = _U('police_wear'), value = 'chef_wear'})
elseif grade == 'boss' then
	table.insert(elements, {label = _U('police_wear'), value = 'boss_wear'})
end

if Config.EnableNonFreemodePeds then
	table.insert(elements, {label = 'Sheriff wear', value = 'freemode_ped', maleModel = 's_m_y_sheriff_01', femaleModel = 's_f_y_sheriff_01'})
	table.insert(elements, {label = 'Police wear', value = 'freemode_ped', maleModel = 's_m_y_cop_01', femaleModel = 's_f_y_cop_01'})
	table.insert(elements, {label = 'Patricio', value = 'freemode_ped', maleModel = 'CS_Clay', femaleModel = 'CS_Clay'})
	table.insert(elements, {label = 'Angry Bird', value = 'freemode_ped', maleModel = 'CS_Brad', femaleModel = 'CS_Brad'})
	table.insert(elements, {label = 'Swat wear', value = 'freemode_ped', maleModel = 's_m_y_swat_01', femaleModel = 's_m_y_swat_01'})
end

PD: The name for example <s_m_y_swat_01> is for man, if do you want to doit for woman you only
have to change the “m” for “f”. Or you can change it from the job.

That’s all, if something you didn’t understood tell me pliss.

6 Likes

bother my english ;(

1 Like

excellent guide functions thanks a lot <3

1 Like

Sorry for my english :sweat_smile:

1 Like

I don’t understand the uniform gives it to me without a hat :frowning:

Can anyone tell me how to add multiple uniforms for each rank

Same script as above

Yeah you only have to read the config.lua from esx_policejob and change it,that’s quite easy

  1. Follow my tutorial above
  2. Change it here (line 205 to 291)

Config.Uniforms = {
recruit_wear = {
male = {
[‘tshirt_1’] = 59, [‘tshirt_2’] = 1,
[‘torso_1’] = 55, [‘torso_2’] = 0,
[‘decals_1’] = 0, [‘decals_2’] = 0,
[‘arms’] = 41,
[‘pants_1’] = 25, [‘pants_2’] = 0,
[‘shoes_1’] = 25, [‘shoes_2’] = 0,
[‘helmet_1’] = 46, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
},
female = {
[‘tshirt_1’] = 36, [‘tshirt_2’] = 1,
[‘torso_1’] = 48, [‘torso_2’] = 0,
[‘decals_1’] = 0, [‘decals_2’] = 0,
[‘arms’] = 44,
[‘pants_1’] = 34, [‘pants_2’] = 0,
[‘shoes_1’] = 27, [‘shoes_2’] = 0,
[‘helmet_1’] = 45, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
}
},
officer_wear = {
male = {
[‘tshirt_1’] = 58, [‘tshirt_2’] = 0,
[‘torso_1’] = 55, [‘torso_2’] = 0,
[‘decals_1’] = 0, [‘decals_2’] = 0,
[‘arms’] = 41,
[‘pants_1’] = 25, [‘pants_2’] = 0,
[‘shoes_1’] = 25, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
},
female = {
[‘tshirt_1’] = 35, [‘tshirt_2’] = 0,
[‘torso_1’] = 48, [‘torso_2’] = 0,
[‘decals_1’] = 0, [‘decals_2’] = 0,
[‘arms’] = 44,
[‘pants_1’] = 34, [‘pants_2’] = 0,
[‘shoes_1’] = 27, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
}
},
sergeant_wear = {
male = {
[‘tshirt_1’] = 58, [‘tshirt_2’] = 0,
[‘torso_1’] = 55, [‘torso_2’] = 0,
[‘decals_1’] = 8, [‘decals_2’] = 1,
[‘arms’] = 41,
[‘pants_1’] = 25, [‘pants_2’] = 0,
[‘shoes_1’] = 25, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
},
female = {
[‘tshirt_1’] = 35, [‘tshirt_2’] = 0,
[‘torso_1’] = 48, [‘torso_2’] = 0,
[‘decals_1’] = 7, [‘decals_2’] = 1,
[‘arms’] = 44,
[‘pants_1’] = 34, [‘pants_2’] = 0,
[‘shoes_1’] = 27, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
}
},
intendent_wear = {
male = {
[‘tshirt_1’] = 58, [‘tshirt_2’] = 0,
[‘torso_1’] = 55, [‘torso_2’] = 0,
[‘decals_1’] = 8, [‘decals_2’] = 2,
[‘arms’] = 41,
[‘pants_1’] = 25, [‘pants_2’] = 0,
[‘shoes_1’] = 25, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
},
female = {
[‘tshirt_1’] = 35, [‘tshirt_2’] = 0,
[‘torso_1’] = 48, [‘torso_2’] = 0,
[‘decals_1’] = 7, [‘decals_2’] = 2,
[‘arms’] = 44,
[‘pants_1’] = 34, [‘pants_2’] = 0,
[‘shoes_1’] = 27, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
}
},
lieutenant_wear = { – currently the same as intendent_wear
male = {
[‘tshirt_1’] = 58, [‘tshirt_2’] = 0,
[‘torso_1’] = 55, [‘torso_2’] = 0,
[‘decals_1’] = 8, [‘decals_2’] = 2,
[‘arms’] = 41,
[‘pants_1’] = 25, [‘pants_2’] = 0,
[‘shoes_1’] = 25, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
},
female = {
[‘tshirt_1’] = 35, [‘tshirt_2’] = 0,
[‘torso_1’] = 48, [‘torso_2’] = 0,
[‘decals_1’] = 7, [‘decals_2’] = 2,
[‘arms’] = 44,
[‘pants_1’] = 34, [‘pants_2’] = 0,
[‘shoes_1’] = 27, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
}
},
chef_wear = {
male = {
[‘tshirt_1’] = 58, [‘tshirt_2’] = 0,
[‘torso_1’] = 55, [‘torso_2’] = 0,
[‘decals_1’] = 8, [‘decals_2’] = 3,
[‘arms’] = 41,
[‘pants_1’] = 25, [‘pants_2’] = 0,
[‘shoes_1’] = 25, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
},
female = {
[‘tshirt_1’] = 35, [‘tshirt_2’] = 0,
[‘torso_1’] = 48, [‘torso_2’] = 0,
[‘decals_1’] = 7, [‘decals_2’] = 3,
[‘arms’] = 44,
[‘pants_1’] = 34, [‘pants_2’] = 0,
[‘shoes_1’] = 27, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
}
},
boss_wear = { – currently the same as chef_wear
male = {
[‘tshirt_1’] = 58, [‘tshirt_2’] = 0,
[‘torso_1’] = 55, [‘torso_2’] = 0,
[‘decals_1’] = 8, [‘decals_2’] = 3,
[‘arms’] = 41,
[‘pants_1’] = 25, [‘pants_2’] = 0,
[‘shoes_1’] = 25, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
},
female = {
[‘tshirt_1’] = 35, [‘tshirt_2’] = 0,
[‘torso_1’] = 48, [‘torso_2’] = 0,
[‘decals_1’] = 7, [‘decals_2’] = 3,
[‘arms’] = 44,
[‘pants_1’] = 34, [‘pants_2’] = 0,
[‘shoes_1’] = 27, [‘shoes_2’] = 0,
[‘helmet_1’] = -1, [‘helmet_2’] = 0,
[‘chain_1’] = 0, [‘chain_2’] = 0,
[‘ears_1’] = 2, [‘ears_2’] = 0
}
},
bullet_wear = {
male = {
[‘bproof_1’] = 11, [‘bproof_2’] = 1
},
female = {
[‘bproof_1’] = 13, [‘bproof_2’] = 1
}
},
gilet_wear = {
male = {
[‘tshirt_1’] = 59, [‘tshirt_2’] = 1
},
female = {
[‘tshirt_1’] = 36, [‘tshirt_2’] = 1
}
}

}
If something tell me

I guess im not getting it, would it be possible to talk to you on discord or something?

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.