mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 09:18:53 +00:00
refactor(es_extended): Refactor Previous Commit
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user