• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved How i can return a channel name?

Exedion

Active Member
Joined
Jun 11, 2007
Messages
629
Reaction score
30
How i can return a channel name with some function? specialy "onChannelRequest(cid, channel, custom)"
 
I could not find a function for that.

You could write a table storing the names:
LUA:
local channelNames = {
    -- [channelID] = "Name"
    [1] = "Advertisement",
    [2] = "Help",
    -- etc
}

-- now in your script you can get the name with:
local channelName = channelNames[channelid]
 
I could not find a function for that.

You could write a table storing the names:
LUA:
local channelNames = {
    -- [channelID] = "Name"
    [1] = "Advertisement",
    [2] = "Help",
    -- etc
}

-- now in your script you can get the name with:
local channelName = channelNames[channelid]

really thanks! but i find a better way to compare channels without the channel name
 
Back
Top