โš™๏ธConfiguration

Here we'll see how to configure your own VIP's and integrate custom rewards.

1. Configure your Admins

Add your admins

To add a player in ug-vipsystem admin, you can use any of these identifiers. You can find them in your txAdmin:

  • Steam Identifier

  • License Identifier

  • XBL Identifier

  • Live Identifier

  • Discord Identifier

  • FiveM Identifier

After copying the identifier of the admin, you can open the config.lua file in the ug-vipsystem resource folder. Now, paste the identifier as a new string in Config.Settings > admins, like the example:

config.lua
Config.Settings = {
    admins = {
        'Your Admins Identifier', -- < Put here your Admins Identifiers
    }
}

2. Create Custom VIP's

New VIP Creation

To create a new VIP, let's open the file VIPs/VIPs.lua in ug-vipsystem resource folder, then, copy the VIP Example and modify as your like. Here will be an example of VIP.

VIP Events - Basic Events

Now, let's open the Event Files in VIPs/events/client.lua and VIPs/events/client.lua

In this example, we'll send a notification using ug-notify script to the player.

VIP Events - ESX Integration

Let's suppose that we want to give 100'000 โ‚ฌ to the bank of the player and to spawn a vehicle. Let's learn on how to do that. Let's create a Server Event to make it work.

ESX 1.1 (Old ESX)

Now, if we use the VIP, then it should give us the car and the money.

BEFORE:

AFTER:

Last updated

Was this helpful?