[help] commando no permissions

I’m trying to create this command and when using it I don’t get permissions. it is a general command for all users. can someone help me

ESX.RegisterCommand(‘info’, {“user”, “admin”}, function(xPlayer, args, showError)

local job = xPlayer.getJob().name

local jobgrade = xPlayer.getJob().grade_name

print("^5ID: ^0"..xPlayer.source.." | ^5Nombre:^0 "..xPlayer.getName().." | ^5Trabajo: ^0".. xPlayer.getJob().grade_label)

end, true)

Moved your topic to appropriate category

At this point, this forum will have made most of your server :joy:
You’re over complicating it. I suggest looking at other scripts for reference.

RegisterCommand("info", function(source, args, rawCommand)
	local src = source
	local xPlayer = ESX.GetPlayerFromId(src)
	print("^5ID: ^0"..src.." | ^5Nombre:^0 "..xPlayer.getName().." | ^5Trabajo: ^0".. xPlayer.job.grade_label)
end)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.