Skip to content

Commit

Permalink
fix(client/player): not safe for network error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mycroft-Studios committed Nov 9, 2024
1 parent d911a5d commit a502164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/player/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ AddEventHandler("onResourceStart", function(resource)
end)

-- On player loaded
AddEventHandler("esx:playerLoaded", function(xPlayer)
ESX.SecureNetEvent("esx:playerLoaded", function(xPlayer)
if not Config.Disable.Weapon then
HUD:GetWeapons()
end
Expand Down

0 comments on commit a502164

Please sign in to comment.