feat(core): secure events

This commit is contained in:
Kasey FItton
2024-11-02 20:04:45 +00:00
parent 87d55a2b0f
commit 2bc9f83ffb
11 changed files with 65 additions and 47 deletions
+3 -3
View File
@@ -29,15 +29,15 @@ end)
-- Events
RegisterNetEvent("esx_multicharacter:SetupUI", function(data, slots)
ESX.SecureNetEvent("esx_multicharacter:SetupUI", function(data, slots)
Multicharacter:SetupUI(data, slots)
end)
RegisterNetEvent('esx:playerLoaded', function(playerData, isNew, skin)
ESX.SecureNetEvent('esx:playerLoaded', function(playerData, isNew, skin)
Multicharacter:PlayerLoaded(playerData, isNew, skin)
end)
RegisterNetEvent('esx:onPlayerLogout', function()
ESX.SecureNetEvent('esx:onPlayerLogout', function()
DoScreenFadeOut(500)
Wait(5000)