diff --git a/[core]/es_extended/client/modules/actions.lua b/[core]/es_extended/client/modules/actions.lua index 89d3c0ba6..2e3755894 100644 --- a/[core]/es_extended/client/modules/actions.lua +++ b/[core]/es_extended/client/modules/actions.lua @@ -48,7 +48,6 @@ function Actions:TrackPed() ESX.SetPlayerData("ped", playerPed) TriggerEvent("esx:playerPedChanged", playerPed) - TriggerServerEvent("esx:playerPedChanged", PedToNet(playerPed)) end end diff --git a/[core]/es_extended/shared/config/main.lua b/[core]/es_extended/shared/config/main.lua index e3e3dad28..2c3756053 100644 --- a/[core]/es_extended/shared/config/main.lua +++ b/[core]/es_extended/shared/config/main.lua @@ -1,5 +1,6 @@ Config = {} +-- for ox inventory, use Config.CustomInventory = "ox", for others, set to "resource_name" Config.CustomInventory = false Config.Accounts = { @@ -53,9 +54,6 @@ Config.AdminLogging = false -- Logs the usage of certain commands by those with -- DO NOT CHANGE BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING -------------------------------------------------------------------- Config.EnableDefaultInventory = Config.CustomInventory == false -- Display the default Inventory ( F2 ) -if GetResourceState("ox_inventory") ~= "missing" then - Config.CustomInventory = "ox" -end local txAdminLocale = GetConvar("txAdmin-locale", "en") local esxLocale = GetConvar("esx:locale", "invalid") diff --git a/[core]/esx_skin/client/modules/camera.lua b/[core]/esx_skin/client/modules/camera.lua index f1b106366..ff6b5fd7c 100644 --- a/[core]/esx_skin/client/modules/camera.lua +++ b/[core]/esx_skin/client/modules/camera.lua @@ -36,7 +36,7 @@ function Camera:PositionLoop() while self.cam do self:DisableContols() - local ped = ESX.PlayerData.ped or PlayerPedId() + local ped = PlayerPedId() local coords = GetEntityCoords(ped) local pos, posToLook = Skin:CalcuatePosition(coords) @@ -59,7 +59,7 @@ function Camera:Create() return end - local playerPed = ESX.PlayerData.ped or PlayerPedId() + local playerPed = PlayerPedId() local playerCoords = GetEntityCoords(playerPed) self.cam = CreateCam("DEFAULT_SCRIPTED_CAMERA", true) diff --git a/[core]/esx_skin/client/modules/menu.lua b/[core]/esx_skin/client/modules/menu.lua index 1b796a709..e7ddcf1b4 100644 --- a/[core]/esx_skin/client/modules/menu.lua +++ b/[core]/esx_skin/client/modules/menu.lua @@ -36,7 +36,7 @@ function Menu:Restrict() end function Menu:InsertElements() - local playerPed = ESX.PlayerData.ped or PlayerPedId() + local playerPed = PlayerPedId() for i = 1, #self.components, 1 do local value = self.components[i].value