SERVER EXPORTS
Create Conversation (By Source)
Creates a new Darkchat conversation for a player using their Server ID (Source). You can optionally specify a join code.
local result = exports["17mov_Phone"]:Darkchat_CreateConversationBySrc(src, name, joinCode)Returns:
table:{ success: boolean, newConv?: DarkchatConversation }
src
number
โ
The player's server ID (source).
name
string
โ
The name of the conversation.
joinCode
string
โ
Code to join conversation. If not provided, it will be generated automatically.
Create Conversation (By Number)
Creates a new Darkchat conversation for a player using their phone number.
local result = exports["17mov_Phone"]:Darkchat_CreateConversationByNumber(number, name, joinCode)Returns:
table:{ success: boolean, newConv?: DarkchatConversation }
number
number
โ
The player's phone number.
name
string
โ
The name of the conversation.
joinCode
string
โ
Code to join conversation. If not provided, it will be generated automatically.
Add To Conversation (By Source)
Adds a player to an existing Darkchat conversation using their Server ID (Source).
local success = exports["17mov_Phone"]:Darkchat_AddToConversationBySrc(src, conversationId)Returns:
boolean:trueif the user was successfully added.
src
number
โ
The player's server ID (source).
conversationId
number
โ
ID of the conversation to add the user to.
Add To Conversation (By Number)
Adds a player to an existing Darkchat conversation using their phone number.
local success = exports["17mov_Phone"]:Darkchat_AddToConversationByNumber(number, conversationId)Returns:
boolean:trueif the user was successfully added.
number
number
โ
The player's phone number.
conversationId
number
โ
ID of the conversation to add the user to.
Remove From Conversation (By Source)
Removes a player from a Darkchat conversation using their Server ID (Source).
local success = exports["17mov_Phone"]:Darkchat_RemoveFromConversationBySrc(src, conversationId, isSelf)Returns:
boolean:trueif the user was successfully removed.
src
number
โ
The player's server ID (source).
conversationId
number
โ
ID of the conversation to remove the user from.
isSelf
boolean
โ
If true, the notification says "You left...". If false (or nil), it says "Owner kicked you...".
Remove From Conversation (By Number)
Removes a player from a Darkchat conversation using their phone number.
local success = exports["17mov_Phone"]:Darkchat_RemoveFromConversationByNumber(number, conversationId, isSelf)Returns:
boolean:trueif the user was successfully removed.
number
number
โ
The player's phone number.
conversationId
number
โ
ID of the conversation to remove the user from.
isSelf
boolean
โ
If true, the notification says "You left...". If false (or nil), it says "Owner kicked you...".
Last updated