From db2542e75e7feb88f5e28197f65ea72d53d8713b Mon Sep 17 00:00:00 2001 From: Infernalz <51412133+Infernalz92@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:58:40 +0100 Subject: [PATCH] Removed CloseMenu2 --- client/main.lua | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/client/main.lua b/client/main.lua index bf770d6c..34d9cd76 100644 --- a/client/main.lua +++ b/client/main.lua @@ -125,23 +125,6 @@ RegisterNUICallback('closeMenu', function() FreezeEntityPosition(playerPed, false) end) -RegisterNUICallback('closeMenu2', function() - if not nui then return end - nui = false - local playerPed = PlayerPedId() - local model = GetEntityModel(playerPed) - local skins = json.encode(SkinData) - local clothes = json.encode(ClothesData) - LoadSkin(playerPed, SkinData) - LoadClothes(playerPed, ClothesData, false) - SetNuiFocus(false, false) - RenderScriptCams(false, true, 250, 1, 0) - DestroyCam(Camera, false) - ClothingRoomTransition(BeforePosition, false) - FreezeEntityPosition(playerPed, false) - TriggerServerEvent('qbr-clothing:server:saveSkin', model, skins, clothes) -end) - RegisterNUICallback('save', function() if not nui then return end local playerPed = PlayerPedId()