# gusti-membershipvehicle

<figure><img src="https://295400130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMFT8aGurexPIVgQA1xPf%2Fuploads%2FyLjNqjl5wQOqqNW2RJLS%2F%5BSTANDALONE%5D%20GUSTI%20MEMBERSHIPVEHICLE.png?alt=media&#x26;token=cfd8775d-5793-4d00-b4be-551a8f9da8a0" alt=""><figcaption><p>Thank you for buying<br><strong>[STANDALONE] GUSTI MEMBERSHIPVEHICLE</strong></p></figcaption></figure>

Gusti MembershipVehicle is a FiveM script to add a membership vehicle feature on the server, where players must be registered as a membership to use a certain vehicle.

## Installation

* Extract rar file `[STANDALONE] Gusti MembershipVehicle`
* Copy / cut `gusti-membershipvehicle` to your server `resources` folder
* Open `server.cfg`
* Add the `gusti-membershipvehicle` script with `ensure gusti-membershipvehicle` in `server.cfg`
* Start server / Restart server
* Finished

## Configuration

Open the `config.lua` file located in the `gusti-membershipvehicle` folder to configure it

* Choose the framework you are using (Config.Framework)
* Select the type of Identifier (Config.TypeIdentifier)
* Set the Config.EnableDeleteVehicle section to true if you want the vehicle to be automatically deleted if the player is non-membership
* Enter a list of any vehicles that you want to become a membership vehicle (Config.VehicleMembership)
* Edit notification for non membership players (Config.Notify)
* Register player membership into (Config.Membership)

Example of VehicleMembership configuration:

```lua
Config.VehicleMembership = {
    'xa21', -- vehicles model name
    'oppressor2', -- vehicles model name
    'apc', -- vehicles model name
}
```

An example of player membership data configuration using typeidentifier = 'license' :

```lua
['license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'] = Config.VehicleMembership, -- Berikan akses ke semua kendaraan yang terdaftar di VehicleMembership
['license:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'] = {'xa21'} -- Berikan akses ke kendaraan tunggal
```

An example of player membership data configuration using typeidentifier = 'steam' :

```lua
['steam:xxxxxxxxxxxxxxx'] = Config.VehicleMembership, -- Berikan akses ke semua kendaraan yang terdaftar di VehicleMembership
['steam:xxxxxxxxxxxxxxx'] = {'xa21'} -- Berikan akses ke kendaraan tunggal
```

## Feature

* Membership Vehicle
* Easy to Use
* Easy to Configure
* 2 Types of Identifiers (license & steam)
* Auto delete vehicle (true/false)

## Framework

* [ESX](https://github.com/esx-framework/esx_core)
* [QBCore](https://github.com/qbcore-framework/qb-core)

## Video Preview

* [YouTube](https://youtu.be/VXFykuqWYrY)

## Purchase

* [Tebex Store](https://aklgaming.tebex.io/package/5643191)
* [Sociabuzz Store](https://sociabuzz.com/gustiagung/p/standalone-gusti-membershipvehicle)
