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

[Feature Request] Send BeamMP ID to the game

Open lionkor opened this issue 1 year ago • 2 comments

As a Lua developer making client-side mods, I would like access to the BeamMP IDs, not just the usernames.


  • [ ] Find a way to send BeamMP ID to the game without a launcher change

lionkor avatar Dec 20 '23 15:12 lionkor

Client modders can request the players table MPVehicleGE.players and itterate over it https://beammp.github.io/BeamMP/modules/MPVehicleGE.html#players

for playerid, player in pairs(players) do
    local playername = player.name
end

however a player can only be found in that table once the a player, that is being looked for, spawned a vehicle/prop

OfficialLambdax avatar Dec 20 '23 15:12 OfficialLambdax

Is there a reason why the BeamMP ID must be sent to the game "without a launcher change"? AFAIK, the launcher signs the user in to the BeamMP backend, right? So wouldn't it need to be the one reporting the BeamMP ID to the client?

carsakiller avatar Aug 02 '24 20:08 carsakiller