Usage
Get Data Vip
The gusti-vipsystem:getDataVip
callback retrieves the VIP status of a player, including the number of days remaining and their VIP status.
Example Usage (Client-Side)
ServerCallback('gusti-vipsystem:getDataVip', function(data)
if data then
print("VIP Days Left:", data.daysLeft)
print("VIP Status:", data.status)
else
print("Player is not registered as a VIP.")
end
end)
Returned Data Structure
When calling gusti-vipsystem:getDataVip
, the callback will return a table (data) containing the following values:
data.daysLeft
number
The number of days remaining for the player's VIP status.
data.status
string
The current status of the player's VIP ("active" or "expiry").
Example Response Data
{
daysLeft = 5, -- 5 days remaining
status = "active" -- Player is an active VIP
}
Summary Get Data Vip
gusti-vipsystem:getDataVip
is a server callback that retrieves a player's VIP status.Returns: —
data.daysLeft
→ Number of days remaining. —data.status
→"active"
or"expiry"
.If the player is not a VIP, it returns
false
.
Commands
lib.addCommand('addvip', {
help = 'Add player to vip',
restricted = 'group.admin'
}, function(source, args, raw)
TriggerClientEvent('gusti-vipsystem:inputAddPlayerVip', source)
end)
Custom Notification
Custom Language
If you want to change the language translation, you can go to the locales folder
en = English
id = Indonesia
Change Language
If you want to change the language, you can set it in the config.lua
section
Config.Locale = 'en' -- (en / id) {en = english / id = indonesia}
Last updated