BeamMP / BeamMP-Server

Server for the multiplayer mod BeamMP for BeamNG.drive
https://beammp.com
GNU Affero General Public License v3.0
117 stars 52 forks source link

[Feature Request] Send BeamMP ID to the game #212

Open lionkor opened 8 months ago

lionkor commented 8 months ago

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


OfficialLambdax commented 8 months ago

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

carsakiller commented 1 month ago

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?