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
  • Dependency
  1. GUSTI RESOURCES
  2. gusti-givevehicle

Setup

Installation

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

  • Extract file

  • Copy / cut gusti-givevehicle into your server's resources folder

  • Open server.cfg

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

  • Restart server

  • Finished

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

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

Configuration

Config = {}

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

-- Language
Config.Locale = GetConvar('esx:locale', 'en') -- en / id

-- Notification
Config.Notify = 'ox_lib' -- 'mythic_notify', 'ox_lib', 'ESX'

-- Do you want to enable a message to the player that he got a vehicle?
Config.EnableReceivingMessages = true

-- Who can access the give vehicle menu?
Config.isAdmin = {
  "steam:xxxxxxxxxxxxxxx" -- steam / license
}

-- looks like this: 'LLL NNN'
-- The maximum plate length is 8 chars (including spaces & symbols), don't go past it!
Config.PlateLetters  = 3
Config.PlateNumbers  = 3
Config.PlateUseSpace = true

-- Inserting a vehicle into owned_vehicles
Config.GiveVehicleTogarage = {
  stored = 1, -- [1 = Garage] - [0 = Impound]
  parking = 'VespucciBoulevard' -- Which garage do you want to save to?
}

-- Configuration ['ox_lib'] Dialog Input
Config.MenuGiveVehicle = {
  PlayerID = {
    icon = 'fas fa-clipboard-user',
    required = true
  },
  VehicleModel = {
    icon = 'fas fa-car',
    required = true
  },
  VehiclePlate = {
    icon = 'fas fa-clipboard-question',
    required = false
  }
}

Config.MenuDeleteVehicle = {
  VehiclePlate = {
    icon = 'fas fa-clipboard-question',
    required = true
  }
}

-- Configure Alert Dialog for Give Vehicle
Config.AlertDialogGiveVehicle = {
  enable = true, -- true / false
  centered = true, -- centers the dialog vertically and horizontally
  cancel = true, -- displays a cancel button (ESC is still available if this is not defined)
  size = 'sm', -- size?: 'xs' or 'sm' or 'md' or 'lg' or 'xl'
  labels = { -- Allows you to define the displayed labels for cancel and/or confirm buttons.
    confirm = 'Give Vehicle',
    cancel = 'Cancel',
  }
}

-- Configure Alert Dialog for Delete Vehicle
Config.AlertDialogDeleteVehicle = {
  enable = true, -- true / false
  centered = true, -- centers the dialog vertically and horizontally
  cancel = true, -- displays a cancel button (ESC is still available if this is not defined)
  size = 'sm', -- size?: 'xs' or 'sm' or 'md' or 'lg' or 'xl'
  labels = { -- Allows you to define the displayed labels for cancel and/or confirm buttons.
    confirm = 'Delete Vehicle',
    cancel = 'Cancel',
  }
}

Dependency

Previousgusti-givevehicleNextUsage

Last updated 7 months ago

🚗
es_extended
oxmysql
ox_lib