Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Adds impound lots to FiveM servers via the ESX Framework

Notifications You must be signed in to change notification settings

XxFri3ndlyxX/esx_impound

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esx_impound

ESX Impound is a plugin that adds impound lots around the map. Users must either wait a specified amount of time, or pay a fine, or both before retrieving their vehicle (configurable)

Join XxFri3ndlyxX discord channel https://discord.gg/xncafqk


If the users have the appropriate job (as defined in the config file) then they are able to impound a vehicle by driving it to the impound lot directly or by using the /impound command.

Requirements

ESX esx_advancedgarage

Installation

Add it to your server-data/resources folder

Add to your server.cfg file

start esx_impound

Create your config file from the default.

  Edit config.lua

Add any additional impound lots that you want in the config file. An example impound lot is below.

SandyAirField = {
  Pos = {x=1731.30, y= 3310.54, z= 40.22}, -- Position of map blip
  Size  = {x = 10.0, y = 10.0, z = 1.0}, -- Size
  Color = {r=0,g=255,b=0}, -- Blip Color
  Marker = 1,
  Type = "smallhanger", -- Type of "impound" type. Available options are nil (default), helipad, dock or small hanger

  -- table of vehicles that are able to spawn at this lot
  AllowedVehicles = {
    "duster",
    "dodo"
  },

  -- Retrieval marker
  RetrievePoint = {
    Pos = {x=1731.30, y= 3310.54, z= 40.22},
    Heading = 185.0,
    Color = {r=0,g=255,b=0},
    Size  = {x = 10.0, y = 10.0, z = 1.0},
    Marker = 1
  },

  --  marker
  DropoffPoint = {
    Pos = {x=1731.30, y= 3310.54, z= 40.22},
    Color = {r=0,g=255,b=0},
    Size  = {x = 10.0, y = 10.0, z = 1.0},
    Marker = 1
  }, 	
},

Review and execute the esx_impound.sql file. If you wish to add additional impound locations you can do that by adding appropriate entries to the config file.

-- Set to true if you are using a "plate" column on your owned_vehicles table (such as when using esx_migrate)
Config.OwnedVehiclesHasPlateColumn = false

Join my discord channel https://discord.gg/xncafqk

About

Adds impound lots to FiveM servers via the ESX Framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Lua 100.0%