-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When opening the wardrobe inside player's apartment, the view is blocked by the back of the wardrobe object.
To Reproduce
Steps to reproduce the behavior:
- Go to player apartment
- Target the wardrobe
- Select "change outfit"
Expected behavior
The PED turns around when there is an object blocking the view for the clothes menu
Suggested Solution
local function TurnAroundPed()
local playerPed = PlayerPedId()
local currentHeading = GetEntityHeading(playerPed)
local newHeading = currentHeading + 180.0
SetEntityHeading(playerPed, newHeading)
end
RegisterNetEvent('apartments:client:ChangeOutfit', function()
TriggerServerEvent('InteractSound_SV:PlayOnSource', 'Clothes1', 0.4)
-- Turn the ped around before opening clothing menu
TurnAroundPed()
-- Short wait to ensure the turn completes before opening menu
Wait(100)
TriggerEvent('qb-clothing:client:openOutfitMenu')
end)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working