mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
refactor(client/modules/actions): remove unused TrackPedCoords
This commit is contained in:
@@ -33,13 +33,6 @@ function Actions:SetVehicleStatus()
|
||||
ESX.SetPlayerData("seat", self.seat)
|
||||
end
|
||||
|
||||
function Actions:TrackPedCoords()
|
||||
local playerPed = ESX.PlayerData.ped
|
||||
local coords = GetEntityCoords(playerPed)
|
||||
|
||||
ESX.SetPlayerData("coords", coords)
|
||||
end
|
||||
|
||||
function Actions:TrackPedCoordsOnce()
|
||||
CreateThread(function()
|
||||
while not ESX.IsPlayerLoaded() do
|
||||
@@ -49,7 +42,7 @@ function Actions:TrackPedCoordsOnce()
|
||||
ESX.PlayerData.coords = nil
|
||||
|
||||
setmetatable(ESX.PlayerData, {
|
||||
__index = function(self, key)
|
||||
__index = function(_, key)
|
||||
if key ~= "coords" then
|
||||
return
|
||||
end
|
||||
@@ -215,7 +208,6 @@ end
|
||||
function Actions:SlowLoop()
|
||||
CreateThread(function()
|
||||
while ESX.PlayerLoaded do
|
||||
-- self:TrackPedCoords()
|
||||
self:TrackPauseMenu()
|
||||
self:TrackVehicle()
|
||||
self:TrackWeapon()
|
||||
@@ -236,7 +228,7 @@ end
|
||||
function Actions:Init()
|
||||
self:SlowLoop()
|
||||
self:PedLoop()
|
||||
self:TrackPedCoordsOnce()
|
||||
end
|
||||
|
||||
Actions:Init()
|
||||
Actions:TrackPedCoordsOnce()
|
||||
|
||||
Reference in New Issue
Block a user