BeamMP-Server icon indicating copy to clipboard operation
BeamMP-Server copied to clipboard

Add Lua function to get a player's role

Open WiserTixx opened this issue 5 months ago • 1 comments

Adds MP.GetPlayerRole(player_id) to the Lua API to get a player's role ("USER", "EA", "MDEV", "STAFF", "ET") by their player id. Currently you can only get someone's role in onPlayerAuth from the parameters and in onVehicleSpawned and onVehicleEdited from the packet data, but not in onPlayerJoin for example without storing it.

WiserTixx avatar Sep 19 '24 17:09 WiserTixx