I have a problem with my steam account that does not allow me to collect the Steam API Key from it, so I cannot use steam.identifier to give me permissions. for that reason i need some other way to give me permission
I tried to use:
add_principal identifier.player:myName Admin
and:
add_principal identifier.fivem:1 Admin #1 is my ID
but none worked. Does anyone know how I can do this?
These won’t work, and if it did it would be very insecure lol.
I would suggest doing the following:
- Create a new resource with a server script
- Add the following to the file:
AddEventHandler("playerConnecting", function()
print(GetPlayerIdentifiers(source))
end)
- Run that resource, then join the server
- When you join, all of your identifiers should print to the server console
- One of them should start with
license:
, copy this.
- Inside of your
server.cfg
file you can now do:
add_principal identifier.license:<the bit you copied> group.admin
Hope that helps.
3 Likes