Skip to content

Commit

Permalink
fix(playeroutfitrooms): Invalid reference to the target ped (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios authored Apr 20, 2023
1 parent 5083e4f commit b701be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ end
local function OpenOutfitRoom(outfitRoom)
local isAllowed = isPlayerAllowedForOutfitRoom(outfitRoom)
if isAllowed then
TriggerEvent("qb-clothing:client:openOutfitMenu")
OpenMenu(nil, "outfit")
end
end

Expand Down Expand Up @@ -1265,7 +1265,7 @@ local function SetupPlayerOutfitRoomTargets()

if Config.EnablePedsForPlayerOutfitRooms then
TargetPeds.PlayerOutfitRoom[k] = CreatePedAtCoords(v.targetModel or targetConfig.model, v.coords, v.targetScenario or targetConfig.scenario)
Target.AddTargetEntity(TargetPeds.ClothingRoom[k], parameters)
Target.AddTargetEntity(TargetPeds.PlayerOutfitRoom[k], parameters)
else
Target.AddBoxZone("playeroutfitroom_" .. k, v.coords, v.size, parameters)
end
Expand Down

0 comments on commit b701be3

Please sign in to comment.