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).
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.
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.
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.
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).
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.
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).
Returns:
boolean:trueif the player is in a call.
src
number
❌
The player's server ID (source).
Get Call Id From Src
Get Player current call Id by source
Returns:
string | nil callid call id
src
number
❌
Player Server ID
Get Call Id From Number
Get Player current call Id by number
Returns:
string | nil callid call id
number
string
❌
Player Phone Number
Get Call Data From Src
Get Player current Call Data by source
Returns:
PhoneCall | nil callData call data
src
number
❌
Player Server ID
Get Call Data From Number
Get Player current call data by number
Returns:
PhoneCall | nil callData call data
number
string
❌
Player Phone Number
Get Call Data From Call Id
Get Calls data from call id
Returns:
PhoneCall | nil callData call data
callId
string
❌
Phone call ID
Last updated