mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-02 19:28:52 +00:00
Accept "me" in player or playerId type
Co-Authored-By: Dan Sadler <sadler2@users.noreply.github.com>
This commit is contained in:
@@ -77,6 +77,8 @@ ESX.RegisterCommand = function(name, group, cb, allowConsole, suggestion)
|
||||
elseif v.type == 'player' or v.type == 'playerId' then
|
||||
local targetPlayer = tonumber(args[k])
|
||||
|
||||
if args[k] == 'me' then targetPlayer = playerId end
|
||||
|
||||
if targetPlayer then
|
||||
local xTargetPlayer = ESX.GetPlayerFromId(targetPlayer)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user