mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
Merge pull request #1453 from esx-framework/1.11-hotfix
fix(esx_skin): always use latest Ped Id
This commit is contained in:
@@ -48,7 +48,6 @@ function Actions:TrackPed()
|
||||
ESX.SetPlayerData("ped", playerPed)
|
||||
|
||||
TriggerEvent("esx:playerPedChanged", playerPed)
|
||||
TriggerServerEvent("esx:playerPedChanged", PedToNet(playerPed))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user