Server
ServerSide exports of the radio script.
Use these exports at your own risk. Please note that improper use may result in performance or stability issues. Implementing them in fast loops or modifying the script name is not recommended for proper functionality.
The ServerSide exports will modify data in the script tables. Test these exports only in a testing environment.
AddUserToChannel
---@param src number
---@param channel string
---@return boolean
exports["cs-speak"]:AddUserToChannel(src, channel)Add a user to a specific radio channel.
RemoveUserFromChannel
---@param src number
---@param channel string
---@return boolean
exports["cs-speak"]:RemoveUserFromChannel(src, channel)Remove a user from a specific radio channel.
DisconnectUserFromAll
Disconnect a user from all radio channels.
GetUserChannel
Get the current channel of a user. Returns channel ID or false.
MoveUserToChannel
Move a user from one channel to another. If fromChannel is nil, it will be auto-detected.
GetChannelUsers
Get all users connected to a specific channel.
IsUserInChannel
Check if a user is connected to a specific channel.
Last updated