Fixed citizen clothing, closes #166, closes #164

This commit is contained in:
ElPumpo
2018-08-10 21:49:21 +02:00
parent 9cc82ebc1d
commit ae8cdf1371
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -121,7 +121,7 @@ function OpenCloakroomMenu()
table.insert(elements, {label = _U('police_wear'), value = 'boss_wear'})
end
if Config.EnableFreemodePeds then
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 = 'Swat wear', value = 'freemode_ped', maleModel = 's_m_y_swat_01', femaleModel = 's_m_y_swat_01'})
@@ -140,7 +140,7 @@ function OpenCloakroomMenu()
if data.current.value == 'citizen_wear' then
if Config.EnableFreemodePeds then
if Config.EnableNonFreemodePeds then
ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)
local isMale = skin.sex == 0
@@ -151,10 +151,12 @@ function OpenCloakroomMenu()
end)
end)
else
ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin)
TriggerEvent('skinchanger:loadSkin', skin)
end)
end
if Config.MaxInService ~= -1 then
ESX.TriggerServerCallback('esx_service:isInService', function(isInService)
+1 -1
View File
@@ -8,7 +8,7 @@ Config.MarkerColor = { r = 50, g = 50, b = 204 }
Config.EnablePlayerManagement = false
Config.EnableArmoryManagement = false
Config.EnableESXIdentity = false -- enable if you're using esx_identity
Config.EnableFreemodePeds = true -- turn this on if you want custom peds
Config.EnableNonFreemodePeds = false -- turn this on if you want custom peds
Config.EnableSocietyOwnedVehicles = false
Config.EnableLicenses = false -- enable if you're using esx_license