Skip to content

Commit

Permalink
fix(target): Fix headings for zones + removezone (iLLeniumStudios#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios authored Jul 11, 2022
1 parent ab38888 commit aff7978
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ local function RemoveTargets()
RemoveTargetPeds(TargetPeds.ClothingRoom)
else
for k, v in pairs(Config.ClothingRooms) do
exports['qb-target']:RemoveZone('clothing_' .. v.job or v.gang .. k)
exports['qb-target']:RemoveZone('clothing_' .. (v.job or v.gang) .. k)
end
end

Expand Down Expand Up @@ -910,7 +910,8 @@ local function SetupClothingRoomTargets()
name = key,
debugPoly = Config.Debug,
minZ = v.coords.z - 2,
maxZ = v.coords.z + 2
maxZ = v.coords.z + 2,
heading = v.coords.w
}, parameters)
end
end
Expand Down Expand Up @@ -943,7 +944,8 @@ local function SetupPlayerOutfitRoomTargets()
name = 'playeroutfitroom_' .. k,
debugPoly = Config.Debug,
minZ = v.coords.z - 2,
maxZ = v.coords.z + 2
maxZ = v.coords.z + 2,
heading = v.coords.w
}, parameters)
end
end
Expand Down

0 comments on commit aff7978

Please sign in to comment.