AKL DOCUMENTATION
  • 👋Introduction
  • GUSTI RESOURCES
    • ⛏️gusti-minerjob
      • Setup
      • Update
    • 🚙gusti-membershipvehicle
    • 🍗gusti-butcherjob
    • 📣gusti-iosnotify
      • Setup
      • Usage
    • 🌐gusti-status server web
      • Setup
    • ⏳gusti-loadscreen
      • Setup
      • Building
    • 💎gusti-vipmenu
      • Setup
    • 🛠️gusti-welderloot
      • Common Issues
      • Setup
    • 🏃‍♂️gusti-boostsprint
      • Setup
    • 🚀gusti-boostfps
    • 📹gusti-cctv
      • Setup
    • 📅gusti-datetime
      • Setup
    • ☢️gusti-radzone
      • Setup
    • 🔫gusti-hidereticle
    • 🚗gusti-givevehicle
      • Setup
      • Usage
    • 💥gusti-duarmemek
      • Setup
      • Usage
  • 🛡️gusti-vipsystem
    • Setup
    • Usage
  • CODE SNIPPETS
    • Fix Animasi
    • Fix Spam Punch
    • Boost Fps
    • Disable Ambient
    • Send Webhook Messages
    • Spawns GTA V Online Train On Fivem
    • Removing / Adding Limit Map
    • Blacklist Name
    • Item Probability
    • Anti Duplicate Vehicle
    • How To Unbind Keys
Powered by GitBook
On this page
  • Get Data Vip
  • Example Usage (Client-Side)
  • Returned Data Structure
  • Example Response Data
  • Summary Get Data Vip
  • Commands
  • Custom Notification
  • Custom Language
  • Change Language
  1. gusti-vipsystem

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:

Parameter
Type
Description

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
}
{
    daysLeft = 0,       -- No days left
    status = "expiry"  -- VIP status is expired
}
false -- Player is not registered in the VIP system

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)
lib.addCommand('vipadmin', {
    help = 'Manage player vip',
    restricted = 'group.admin'
}, function(source, args, raw)
    TriggerClientEvent('gusti-vipsystem:openAdminVipMenu', source)
end)
lib.addCommand('vipmenu', {
    help = 'Open menu VIP',
}, function(source, args, raw)
    TriggerClientEvent('gusti-vipsystem:openVipMenu', source)
end)

Custom Notification

If you want to change the notification with your notification, you can open the bridge folder

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}
PreviousSetupNextFix Animasi

Last updated 1 month ago

🛡️