FrazzIe / rp-radio

An in-game radio which makes use of the mumble-voip radio API for FiveM
MIT License
41 stars 62 forks source link

Player names #50

Closed HalfDollar closed 2 years ago

HalfDollar commented 3 years ago

How do I add instead of the list of random names where it says the players steam name

mako00x01 commented 2 years ago

BUMP I wanna it to!

RedactedStrix commented 2 years ago

Or discord Names, using the Badger_Discord_API

FrazzIe commented 2 years ago

If you are referring to the radio list: Radio list image

It has nothing to do with the rp-radio script, it's part of my other resource: https://github.com/FrazzIe/mumble-voip-fivem

You can set player names on the list using this server-side export: https://github.com/FrazzIe/mumble-voip-fivem/blob/master/server.lua#L145

Example usage (Lua):

exports["mumble-voip"]:SetPlayerRadioName(  (Player server id), "Custom name")
tyler4435 commented 2 years ago

how do i set it up to pull steam names