⚙️ Integration
Exports to make it easier to integrate with your existing systems
Server exports
GetChannelsWithDefaultDescription
GetChannelsWithDefaultDescriptionDescription: Retrieves all channels that are with their default descriptions for a specified job.
Parameters:
job(string): The job identifier.
Returns:
A table containing all channels that have their default descriptions for the specified job.
Usage:
local job = 'police'
local channels = exports.kub_radioinfo:GetChannelsWithDefaultDescription(job)
if channels then
for _, channel in ipairs(channels) do
print('Channel:', channel)
end
endGetChannelDescription
GetChannelDescriptionDescription: Retrieves the description of a specified channel for a specified job.
Parameters:
channel(number): The channel number.job(string): The job identifier.
Returns:
The description of the specified channel for the specified job, or an
errorif the channel is not a number or the job is not provided.
Usage:
GetChannelDefaultDescription
GetChannelDefaultDescriptionDescription: Retrieves the default description of a specified channel for a specified job.
Parameters:
channel(number): The channel number.job(string): The job identifier.
Returns:
The default description of the specified channel for the specified job, or an
errorif the channel is not a number or the job is not provided.
Usage:
IsChannelDescriptionDefault
IsChannelDescriptionDefaultDescription: Checks if the description of a specified channel for a specified job is the default description.
Parameters:
channel(number): The channel number.job(string): The job identifier.
Returns:
trueif the channel description is the default description,falseotherwise, or anerrorif the channel is not a number or the job is not provided.
Usage:
SetChannelDescription
SetChannelDescriptionDescription: Sets the description of a specified channel.
Parameters:
channel(number): The channel number.channelDescription(string): The new description for the channel.
Returns:
trueif the description was successfully set, or anerrorif the channel is not a number or the channel description is not provided.
Usage:
Last updated