Skip to content

Commit

Permalink
fix(client): remove esx sharedobject event
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Mar 15, 2023
1 parent e7fa278 commit 8852233
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions client/function.lua
Original file line number Diff line number Diff line change
Expand Up @@ -764,16 +764,6 @@ end

function Hud:Myinfo()
if config.framework == 'ESX' then
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Wait(0)
end

while ESX.GetPlayerData().job == nil do
Wait(0)
end

ESX.PlayerData = ESX.GetPlayerData()
xPlayer = ESX.PlayerData
local money = 0
Expand Down Expand Up @@ -1012,7 +1002,7 @@ function Hud:SendNuiSeatBelt()
if self.belt then
DisableControlAction(1, 75, true) -- Disable exit vehicle when stop
DisableControlAction(27, 75, true) -- Disable exit vehicle when Driving
end
end
Wait(sleep)
end
Session[1],Session[2] = 0.0,0.0
Expand Down

0 comments on commit 8852233

Please sign in to comment.