Installation Guide: Impound System
Last updated
Last updated
add this to under the police Line 569
{
id = 'impound',
title = 'Impound',
icon = 'user-lock',
type = 'client',
event = 'J0-Impound:OpenImpoundMenu',
shouldClose = true
},
after adding it will look like this
add this to Line219
{
id = 'impound',
icon = 'user-lock',
label = 'Impound',
event = 'J0-Impound:OpenImpoundMenu',
},
after adding it will look like this
qb-core/shared/items.lua
jomidarcam = {
name = 'jomidarcam',
label = 'Camera',
weight = 1000,
type = 'item',
image = 'camera.png',
unique = true,
useable = true,
shouldClose = true,
combinable = nil,
description = 'Camera'
},
INVENTORY IMAGE
copy the camera.png from J0-Impound/installme/icons/camera.png
paste qb-inventory/html/images/
ox_inventory/data/items.lua
['jomidarcam'] = {
label = 'Camera',
weight = 1000,
client = {
image = 'camera.png',
export = 'God-Impound.useCam'
},
},
INVENTORY IMAGE
copy the camera.png from J0-Impound/installme/icons/camera.png
paste ox_inventory/web/images/
CREATE TABLE IF NOT EXISTS `impound_vehicles` (
`plate` varchar(15) NOT NULL,
`image` text DEFAULT NULL,
`polname` text DEFAULT NULL,
`impoundDays` int(11) DEFAULT NULL,
`lawId` int(11) DEFAULT NULL,
`impoundUntil` datetime DEFAULT NULL,
PRIMARY KEY (`plate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
Copy and run the sql by using heidisql or you can import by using phpmyadmin
open shared/config.lua
J0 = {}
-- Options: "QBCore" for qb-core framework, "ESX" for es_extended framework, or "Qbox" for qbox_core framework
J0.Core = "QBCore"
-- Options: "ox_target", "qb-target", or "interact" (depending on your targeting method setup)
J0.Target = "interact"
-- Enter Your Police Job Name Here
J0.PolJobName = "police"
-- Coordinates where the impound ped will spawn
J0.ImpoundPedCoords = vector4(395.17, -1629.32, 28.29, 62.32)
-- Coordinates where vehicles will be spawned at the impound lot
J0.VehicleSpawnCoords = {
{id = 1, x = 401.35, y = -1618.97, z = 28.29, rotation = 48.01},
{id = 2, x = 403.45, y = -1617.11, z = 28.29, rotation = 58.05}
}
-- Reasons for vehicle impoundment ("laws") Each law has an id, a title (brief description), and a description (detailed explanation of the reason)
-- You can add as many laws you want
J0.Laws = {
{id = 1, title = "Inoperable on a scene", description = "Vehicle found on scene in an inoperable state."},
{id = 2, title = "Unpaid Asset Fees", description = "This vehicle has been flagged as they have not paid their asset fees."},
{id = 3, title = "Vehicle Scuff", description = "Vehicle in an unrecoverable state."},
{id = 4, title = "Joyride", description = "Vehicle stolen and driven without owner permission."},
{id = 5, title = "Evading", description = "Vehicle used to flee from a Peace Officer."},
{id = 6, title = "Reckless Evading", description = "Driven carelessly with gross disregard for human life."},
{id = 7, title = "Robbery or Kidnapping", description = "Vehicle was used in the commission of any robbery or kidnapping-related offense."},
{id = 8, title = "Violent Felony", description = "Used in the commission of violent crime either in a drive-by shooting or for transport to and from the scene of a violent crime."},
{id = 9, title = "Parking Violation", description = "Vehicle parked in a restricted or unauthorized place."},
{id = 10, title = "Street Racing", description = "Vehicle was used in a speed contest on a public road/highway."},
{id = 11, title = "Used in a Felony Otherwise Not Listed", description = "Used in any felony not listed by other charges."}
}
-- Options:
-- "DC" = Discord webhook (for Discord-based logging)
-- "FM" = FivemManage Image API Key (logs images using FivemManage's system)
J0.ImageLogService = "FM"
-- API key for the FivemManage/Discord Image Logging service
-- Replace this with your actual API/Webhook key if using FivemManage/Discord for image logging
J0.ImageLogs = "TvrXwUlobmfoVFLYJxslwntCpOyxryDC"
Framework = qb-core , esx , qbox
Target = qb-target , ox_target , interact
Image Logging Service = Discord Webhook , Fivem Manage Image Api
You can add more laws