optimize a little

change args of GetEntityCoords()
From function PlayerPedId() To variable playerPed
This commit is contained in:
NRTnarathip
2022-02-16 14:59:52 +07:00
committed by GitHub
parent e6f9d90478
commit f81cdcdfea
+1 -1
View File
@@ -382,7 +382,7 @@ CreateThread(function()
local playerPed = PlayerPedId()
if IsPedInAnyVehicle(playerPed, false) then
local coords = GetEntityCoords(PlayerPedId())
local coords = GetEntityCoords(playerPed)
local currentZone, zone, lastZone
if (ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic') or not Config.IsMechanicJobOnly then