Skip to content

Commit

Permalink
refactor(config): Rename PlayerManagedOutfits to BossManagedOutfits
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios committed Jul 15, 2022
1 parent 212b465 commit f8f6b35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ local function LoadPlayerUniform()
if not uniformData then
return
end
if Config.PlayerManagedOutfits then
if Config.BossManagedOutfits then
QBCore.Functions.TriggerCallback("fivem-appearance:server:getManagementOutfits", function(result)
local uniform = nil
for i = 1, #result, 1 do
Expand Down Expand Up @@ -186,7 +186,7 @@ local function InitAppearance()
end
end)
ResetBlips(PlayerJob.name, PlayerGang.name)
if Config.PlayerManagedOutfits then
if Config.BossManagedOutfits then
AddManagementMenuItems()
end
end
Expand All @@ -205,7 +205,7 @@ AddEventHandler('onResourceStop', function(resource)
if Config.UseRadialMenu and GetResourceState("qb-radialmenu") == "started" then
RemoveRadialMenuOption()
end
if Config.PlayerManagedOutfits and GetResourceState("qb-management") == "started" then
if Config.BossManagedOutfits and GetResourceState("qb-management") == "started" then
RemoveManagementMenuItems()
end
end
Expand Down Expand Up @@ -695,7 +695,7 @@ RegisterNetEvent("fivem-appearance:client:openJobOutfitsListMenu", function(data
}
}}
local event = "qb-clothing:client:loadOutfit"
if Config.PlayerManagedOutfits then
if Config.BossManagedOutfits then
event = "fivem-appearance:client:changeOutfit"
end
if data.menuData then
Expand Down Expand Up @@ -936,7 +936,7 @@ local function getPlayerJobOutfits(clothingRoom)
local gradeLevel = clothingRoom.job and PlayerJob.grade.level or PlayerGang.grade.level
local jobName = clothingRoom.job and PlayerJob.name or PlayerGang.name

if Config.PlayerManagedOutfits then
if Config.BossManagedOutfits then
local mType = clothingRoom.job and "Job" or "Gang"
QBCore.Functions.TriggerCallback('fivem-appearance:server:getManagementOutfits', function(result)
for i = 1, #result, 1 do
Expand Down
2 changes: 1 addition & 1 deletion shared/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Config.AlwaysKeepProps = false
Config.PersistUniforms = false -- Keeps Job / Gang Outfits on player reconnects / logout
Config.OnDutyOnlyClothingRooms = false -- Set to `true` to make the clothing rooms accessible only to players who are On Duty

Config.PlayerManagedOutfits = true -- Allows Job / Gang bosses to manage their own job / gang outfits
Config.BossManagedOutfits = true -- Allows Job / Gang bosses to manage their own job / gang outfits

Config.ReloadSkinCooldown = 5000

Expand Down

0 comments on commit f8f6b35

Please sign in to comment.