Still nothing..
I believe, it won't do change, as 'source' is the handler of the command, and local will work, as the script's still in the same function, yup? Anyways, help please !
addCommandHandler ("revive", function(user, cmd, user2)
if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( user ) ), aclGetGroup ( "Admin" ) ) then
if cmd and user2 then
local ID = tonumber(user2)
if ID then
local target = exports.ID_System:getPlayerFromID(ID)
else
local target = exports.ID_System:getPlayerFromPartialName(user2)
end
if target then
if isPedDead(target) then
local x, y, z = getElementPosition (target)
spawnPlayer(target, x, y, z)
else
outputChatBox("This player is still alive", user)
end
else
outputChatBox ("There's no online player with this name.", user)
end
else
outputChatBox ("[syntax] /revive [iD/Partial Name]", user)
end
end
end)