Accept "me" in player or playerId type

Co-Authored-By: Dan Sadler <sadler2@users.noreply.github.com>
This commit is contained in:
ElPumpo
2020-02-22 10:05:10 +01:00
parent 4b95e6a2b0
commit ecbf340e39
+2
View File
@@ -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)