The script must be placed in a folder named tokovoip_script
(NUI restriction)
You can edit the voip configuration in c_config.lua
You can edit the radio channels in s_config.lua
If the channel name contains 'Call' it will be displayed as a call on the ingame overlay
Currently, the radio channels interaction must be done via the client
-
Adds the player to a radio channel
Params type Details channel number Id of the radio channel isRadio boolean If set to true, channel will be handled as a radio, false will handle the channel as a phone call -
Removes the player from a radio channel
Params type Details channel number Id of the radio channel -
Returns true if the player is in the specified radio channel
Params type Details channel number Id of the radio channel -
Requests to update the local radio channels
-
Sets a data key on the specified player Note: if the data is not shared, it will only be available to the local player
Params type Details playerName string Name of the player to apply the data to key string Name of the data key data any Data to save in the key shared boolean If set to true, will sync through network to all the players -
Returns the data of matching player and key
Params type Details playerName string Name of the player to retrieve the data from key string Name of the data key -
Effectively syncs the shared data
Params type Details toEveryone boolean If set to true, the data will be synced to all players, otherwise only to the client who requested it -
Changes the volume of voices over radio
Params type Details volume number Changes the radio volume