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
  • Installation
  • Configuration
  1. gusti-vipsystem

Setup

Installation

Follow the instructions below to run the gusti-vipsystem script on your server

  • Extract file

  • Copy / Cut gusti-vipsystem into your server's resources folder

  • Drag and Drop gusti-vipsystem.sql into your database

  • Open server.cfg

  • Add the gusti-vipsystem script by ensure gusti-vipsystem in server.cfg

  • Restart server

  • Finished

  • Now you can enjoy the features of the gusti-vipsystem script on your server

Before running the gusti-vipsystem script, please pay attention to the dependencies section!

Configuration

Config, Locales = {}, {}

Config.CheckForUpdates = true -- Check for update available?

Config.Locale = 'en' -- (en / id) {en = english / id = indonesia}

Config.NotifTargetPlayer = {
    AddPlayerVip = false, -- If true, players added to VIP will receive a notification.
    DeleteExpiry = true,  -- If true, the player whose VIP is about to expire will receive a notification.
    UpdateStatus = true,  -- If true, players whose VIP has expiry will receive a notification.
}

Config.AutoManagement = {
    -- Auto Delete expiry VIP from the database
    AutoDeleteExpiry = {
        enable = true, -- If true, then expiry VIP will be automatically deleted from the database.
        time = 2       -- Time in minutes to run check and delete expiry VIP
    },

    -- Auto Update expiry VIP status to 'expiry'
    AutoUpdateStatus = {
        enable = true, -- If true, then the expiry VIP status will automatically be updated to 'expiry'.
        time = 1       -- Time in minutes to run check and update VIP status
    }
}

Config.AddVipUser = {
    -- Dialog title when adding VIP user
    title = 'Add VIP Player',

    -- Input fields that will be displayed in the dialog form
    input = {
        {
            type = 'input',                          -- Don't change it
            label = 'Player Identifier',             -- Labels that appear in the input
            icon = 'file-signature',                 -- Icons used in input
            description = 'Enter player identifier', -- Additional description
            placeholder = 'steam/citizenid/etc',     -- Placeholder to provide sample input
            password = true,                         -- If true, then the Identifier will be displayed (******)
            required = true                          -- If true, then it must be filled in before sending.
        },
        {
            type = 'date',                           -- Don't change it
            label = 'VIP Expiry Date',               -- Label to select VIP expiration date
            icon = {'far', 'calendar'},              -- Icons used in input
            default = true,                          -- By default, it will be filled with today's date.
            format = 'DD/MM/YYYY'                    -- Date format used (Do not change if you do not understand)
        }
    }
}

Config.MenuVipManagement = {
    -- Configuration for Admin VIP Management main menu
    VipManagement = {
        title = 'Admin VIP Management',             -- VIP Management menu main title
    },

    -- Configuration when no VIP user found
    NotFound = {
        title = 'Admin VIP Management',             -- Still showing title even though there is no data
        options = {
            {
                title = 'Not Found',                -- Message displayed if there is no data
                disabled = true                     -- This option is not clickable
            }
        }
    },

    -- Configure VIP user display in the menu
    VipUserOptions = {
        -- If the VIP user status is "active"
        Active = {
            icon = 'user',                          -- Icon used for active VIP users
            iconColor = 'green',                    -- Icon color for active status
            description = 'Status: %s | Expiry: %s' -- User description format (dynamically populated)
        },

        -- Jika status user VIP adalah "expiry"
        Expiry = {
            icon = 'user-minus',                    -- Icon used for expiry VIP users
            iconColor = 'red',                      -- Icon color for expiry status
            description = 'Status: %s | Expiry: %s' -- User description format (dynamically populated)
        }
    }
}

Config.ManagementVipMenu = {
    title = "Manage VIP - %s",                         -- Menu title, filled with the selected VIP name
    options = {
        {
            title = "Edit",                            -- Option to edit user VIP information
            description = "Edit (Status, Expiry)",     -- Description of this option
            icon = "edit",                             -- Icon for edit option
            action = "edit"                            -- Action type
        },
        {
            title = "Delete",                          -- Option to remove user VIP status
            description = "Delete VIP from this user", -- VIP delete option description
            icon = "trash",                            -- Icon for VIP delete option
            action = "delete"                          -- Action type
        }
    }
}

Config.EditUserVip = {
    title = 'Edit - %s', -- Edit menu title, filled with the selected VIP name
    input = {
        {
            type = 'input',             -- Don't change it
            label = 'Name',             -- Label input
            icon = 'signature',         -- Icon for name
            disabled = true             -- If true, then it cannot be edited.
        },
        {
            type = 'input',             -- Input teks biasa (tidak bisa diedit)
            label = 'Identifier',       -- Label input
            icon = 'file-signature',    -- Icon for identifier
            password = true,            -- If true, then the Identifier will be displayed (******)
            disabled = true             -- If true, then it cannot be edited.
        },
        {
            type = 'select',            -- Don't change it
            label = 'Status',           -- Label input
            icon = 'signal',            -- Icon for status
            options = {
                -- Do not change the value of 'value' because it is used in the system
                {value = 'active', label = 'Active'},  
                {value = 'expiry', label = 'Expiry'}
            }
        },
        {
            type = 'date',              -- Don't change it
            label = 'VIP Expiry Date',  -- Label input
            icon = {'far', 'calendar'}, -- Icon for calendar
            format = "DD/MM/YYYY"       -- Date format used (Do not change if you do not understand)
        }
    }
}

Config.DeleteUserVip = {
    header = "Delete VIP",  -- Title of the confirmation dialog when you want to delete a VIP
    content = "Are you sure you want to delete this VIP player?", -- Fill in the message that appears in the confirmation dialog before deleting the VIP
    centered = true,  -- Sets whether the dialog text is centered or not
    cancel = true  -- Displays a "Cancel" button to cancel VIP deletion
}

-- LOCALES (DON'T TOUCH)
function _L(_id)
    if Locales[Config.Locale][_id] then
        return Locales[Config.Locale][_id]
    else
        print("Locale '".._id.."' doesn't exist")
    end
end
Previousgusti-vipsystemNextUsage

Last updated 2 months ago

🛡️