SERVER EXPORTS
Fetch Contacts (By Source)
Retrieves a list of all contacts belonging to a player using their Server ID (Source).
local contacts = exports["17mov_Phone"]:PhoneApp_FetchContactsBySrc(src)Returns:
PhoneContact[]: An array of contact objects.
src
number
โ
The player's server ID (source).
Fetch Contacts (By Number)
Retrieves a list of all contacts belonging to a player using their phone number.
local contacts = exports["17mov_Phone"]:PhoneApp_FetchContactsByNumber(number)Returns:
PhoneContact[]: An array of contact objects.
number
number
โ
The player's phone number.
Add Contact (By Source)
Adds a new contact to the player's phone book using their Server ID (Source).
local result = exports["17mov_Phone"]:PhoneApp_AddContactBySrc(src, contactNumber, firstname, lastname, notes, image)Returns:
table:{ success: boolean, contact?: PhoneContact, message?: string }
src
number
โ
The player's server ID (source).
contactNumber
string
โ
The phone number of the contact to add.
firstname
string
โ
The contact's first name.
lastname
string
โ
The contact's last name.
notes
string
โ
Optional notes about the contact.
image
string
โ
Optional URL for the contact's avatar.
Add Contact (By Number)
Adds a new contact to the player's phone book using their phone number.
local result = exports["17mov_Phone"]:PhoneApp_AddContactByNumber(number, contactNumber, firstname, lastname, notes, image)Returns:
table:{ success: boolean, contact?: PhoneContact, message?: string }
number
number
โ
The player's phone number.
contactNumber
string
โ
The phone number of the contact to add.
firstname
string
โ
The contact's first name.
lastname
string
โ
The contact's last name.
notes
string
โ
Optional notes about the contact.
image
string
โ
Optional URL for the contact's avatar.
Delete Contact
Permanently removes a contact from the player's phone book.
local success = exports["17mov_Phone"]:PhoneApp_DeleteContact(contactId)Returns:
boolean:trueif the contact was successfully deleted.
contactId
number
โ
The ID of the contact to delete.
Start Call
Initiates a call between two phone numbers. Useful for NPC interactions or automated services.
local callData = exports["17mov_Phone"]:PhoneApp_StartCall(from, to, type)Returns:
PhoneCall | false: The call object if successful, orfalseif it failed.
from
string
โ
Caller's phone number.
to
string
โ
Receiver's phone number.
type
"phone" | "video"
โ
Is video-call or default call?
End Call (By Source)
Ends any active call for a player using their Server ID (Source).
local success = exports["17mov_Phone"]:PhoneApp_EndCallBySrc(src)Returns:
boolean:trueif a call was found and ended.
src
number
โ
Player ID
End Call (By Number)
Ends any active call for a player using their phone number.
local success = exports["17mov_Phone"]:PhoneApp_EndCallByNumber(number)Returns:
boolean:trueif a call was found and ended.
number
number | string
โ
Number of player in call to end
Check If In Call (By Source)
Checks if a player is currently in an active call using their Server ID (Source).
local inCall = exports["17mov_Phone"]:PhoneApp_IsInCallBySrc(src)Returns:
boolean:trueif the player is in a call.
src
number
โ
The player's server ID (source).
Check If In Call (By Number)
Checks if a player is currently in an active call using their phone number.
local inCall = exports["17mov_Phone"]:PhoneApp_IsInCallByNumber(number)Returns:
boolean:trueif the player is in a call.
number
number | string
โ
Player number
Last updated