SERVER EXPORTS
Save Media (By Source)
Saves a photo or video to the player's gallery using their Server ID (Source).
local result = exports["17mov_Phone"]:Gallery_SaveMediaBySrc(src, type, url)Returns:
table:{ success: boolean, data: GalleryMedia }
src
number
โ
The player's server ID (source).
type
photo | video
โ
Type of media
url
string
โ
Direct URL to the image or video file.
Save Media (By Number)
Saves a photo or video to the player's gallery using their phone number.
local result = exports["17mov_Phone"]:Gallery_SaveMediaByNumber(number, type, url)Returns:
table:{ success: boolean, data: GalleryMedia }
number
number
โ
The player's phone number.
type
photo | video
โ
Type of media
url
string
โ
Direct URL to the image or video file.
Delete Media (By Source)
Deletes specific media from the player's gallery using their Server ID (Source).
local success = exports["17mov_Phone"]:Gallery_DeleteMediaBySrc(src, mediaId)Returns:
boolean:trueif deletion was successful.
src
number
โ
The player's server ID (source).
mediaId
number | number[]
โ
The id of media
Delete Media (By Number)
Deletes specific media from the player's gallery using their phone number.
local success = exports["17mov_Phone"]:Gallery_DeleteMediaByNumber(src, mediaId)Returns:
boolean:trueif deletion was successful.
src
number
โ
The player's phone number.
mediaId
number | number[]
โ
The id of media
Fetch All Media (By Source)
Retrieves all media items from a player's gallery using their Server ID (Source).
local mediaList = exports["17mov_Phone"]:Gallery_FetchAllMediaBySrc(src)Returns:
GalleryMedia[]: An array of media objects.
src
number
โ
The player's server ID (source).
Fetch All Media (By Number)
Retrieves all media items from a player's gallery using their phone number.
local mediaList = exports["17mov_Phone"]:Gallery_FetchAllMediaByNumber(number)Returns:
GalleryMedia[]: An array of media objects.
src
number
โ
The player's phone number.
Last updated