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 
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)
system
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.