fix(esx_skin): always use latest Ped Id

This commit is contained in:
Kasey FItton
2024-11-11 23:25:20 +00:00
parent 47a3054174
commit 7697e143f5
4 changed files with 4 additions and 7 deletions
@@ -48,7 +48,6 @@ function Actions:TrackPed()
ESX.SetPlayerData("ped", playerPed)
TriggerEvent("esx:playerPedChanged", playerPed)
TriggerServerEvent("esx:playerPedChanged", PedToNet(playerPed))
end
end
+1 -3
View File
@@ -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")
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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