Skip to content

Commit

Permalink
Merge pull request #1487 from Arctos2win/1.11.2-hotfix
Browse files Browse the repository at this point in the history
chore(esx_core): add 2 pull request changes
  • Loading branch information
Arctos2win authored Nov 18, 2024
2 parents 982c494 + 05cd998 commit 2da69fa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [core]/es_extended/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local function ApplyMetadata(metadata)
end
end

ESX.SecureNetEvent("esx:playerLoaded", function(xPlayer, _, skin)
RegisterNetEvent("esx:playerLoaded", function(xPlayer, _, skin)
ESX.PlayerData = xPlayer

if not Config.Multichar then
Expand Down
2 changes: 1 addition & 1 deletion [core]/es_extended/client/modules/npwd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local function checkPhone()
npwd:setPhoneDisabled((phoneItem and phoneItem.count or 0) <= 0)
end

ESX.SecureNetEvent("esx:playerLoaded", checkPhone)
RegisterNetEvent("esx:playerLoaded", checkPhone)

AddEventHandler("onClientResourceStart", function(resource)
if resource ~= "npwd" then
Expand Down
2 changes: 1 addition & 1 deletion [core]/es_extended/imports.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if not IsDuplicityVersion() then -- Only register this event for the client
end
end)

ESX.SecureNetEvent("esx:playerLoaded", function(xPlayer)
RegisterNetEvent("esx:playerLoaded", function(xPlayer)
ESX.PlayerData = xPlayer
ESX.PlayerLoaded = true
end)
Expand Down
2 changes: 1 addition & 1 deletion [core]/esx_multicharacter/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ESX.SecureNetEvent("esx_multicharacter:SetupUI", function(data, slots)
Multicharacter:SetupUI(data, slots)
end)

ESX.SecureNetEvent('esx:playerLoaded', function(playerData, isNew, skin)
RegisterNetEvent('esx:playerLoaded', function(playerData, isNew, skin)
Multicharacter:PlayerLoaded(playerData, isNew, skin)
end)

Expand Down
4 changes: 2 additions & 2 deletions [core]/esx_skin/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ AddEventHandler("esx_skin:playerRegistered", function()
end)
end)

ESX.SecureNetEvent("esx:playerLoaded", function(_, _, skin)
RegisterNetEvent("esx:playerLoaded", function(_, _, skin)
ESX.PlayerLoaded = true
TriggerServerEvent("esx_skin:setWeight", skin)
end)
Expand All @@ -80,7 +80,7 @@ RegisterNetEvent("esx_skin:openMenu", function(submitCb, cancelCb)
end)

RegisterNetEvent("esx_skin:openRestrictedMenu", function(submitCb, cancelCb, restrict)
Menu:Open(submitCb, cancelCb, nil)
Menu:Open(submitCb, cancelCb, restrict)
end)

RegisterNetEvent("esx_skin:openSaveableMenu", function(submitCb, cancelCb)
Expand Down

0 comments on commit 2da69fa

Please sign in to comment.