refactor(es_extended): Refactor Previous Commit

This commit is contained in:
Meyndflay
2025-06-18 17:40:40 +08:00
parent 3b0911e3f2
commit b87d841914
2 changed files with 1 additions and 6 deletions
@@ -586,11 +586,6 @@ ESX.SecureNetEvent('esx:updatePlayerData', function(key, val)
end)
ESX.SecureNetEvent("esx:executeCommand", function(command)
-- Triggered From Another Client Script?
if GetInvokingResource() then
return
end
ExecuteCommand(command)
end)
+1 -1
View File
@@ -937,7 +937,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
end
function self.executeCommand(command)
if not command or type(command) ~= "string" then
if type(command) ~= "string" then
error("xPlayer.executeCommand must be of type string!")
return
end