[Release] [ESX] [Police Job]

Hello guys! :wink:
I have a issue with this script or the database i dont know but.

When a policeman joining the server after server restart he cant do like F6 - He doesent have the job but it says (Police - Aspirant) in the right corner!

Can someone help :rp:

OpenBodySearchMenu

I can not use the body_search command with some players. F8 did not find the problem.

Somebody know how to Delete Policemans blips on the map?

Hi! How do i add costum police cars to the police garage in ESX. Best regards Christoffer!

You need to do it in the config.lua

How i can edit this script to work as sheriff?

1 Like

Alright been beating my head on the desk… so i got my PD’s set up and able to get all weapons and such but it will not spawn any cars for me… can some one point me in the correct direction?

Here is my cfg

Config = {}

Config.DrawDistance = 100.0
Config.MarkerType = 1
Config.MarkerSize = { x = 1.5, y = 1.5, z = 1.0 }
Config.MarkerColor = { r = 50, g = 50, b = 204 }

Config.EnablePlayerManagement = true
Config.EnableArmoryManagement = false
Config.EnableESXIdentity = true – enable if you’re using esx_identity
Config.EnableNonFreemodePeds = true – turn this on if you want custom peds
Config.EnableSocietyOwnedVehicles = false
Config.EnableLicenses = true – enable if you’re using esx_license

Config.EnableHandcuffTimer = false – enable handcuff timer? will unrestrain player after the time ends
Config.HandcuffTimer = 10 * 60000 – 10 mins

Config.EnableJobBlip = true – enable blips for colleagues, requires esx_society

Config.MaxInService = -1
Config.Locale = ‘en’

Config.PoliceStations = {

LSPD = {

Blip = {
  Pos     = { x = 425.130, y = -979.558, z = 30.711 },
  Sprite  = 60,
  Display = 4,
  Scale   = 1.2,
  Colour  = 29,
},

AuthorizedWeapons = {
  { name = 'WEAPON_NIGHTSTICK',       price = 200 },
  { name = 'WEAPON_COMBATPISTOL',     price = 300 },
  { name = 'WEAPON_ASSAULTSMG',       price = 1250 },
  { name = 'WEAPON_ASSAULTRIFLE',     price = 1500 },
  { name = 'WEAPON_PUMPSHOTGUN',      price = 600 },
  { name = 'WEAPON_STUNGUN',          price = 500 },
  { name = 'WEAPON_FLASHLIGHT',       price = 80 },
  { name = 'WEAPON_FIREEXTINGUISHER', price = 120 },
  { name = 'WEAPON_FLAREGUN',         price = 60 },
  { name = 'WEAPON_STICKYBOMB',       price = 250 },
  { name = 'GADGET_PARACHUTE',        price = 300 },
},

AuthorizedVehicles = {
  {name = 'police' , label = 'Police Vehicle 1'},
  {name = 'police2', label = 'Police Vehicle 2'},
  {name = 'police3', label = 'Police Vehicle 3'},
  {name = 'police4', label = 'Police Vehicle 4'},
  {name = 'policeb', label = 'Motorcycle'},
  {name = 'policet', label = 'Transport Van'},
},

Cloakrooms = {
  { x = 452.600, y = -993.306, z = 29.750 },
},

Armories = {
  { x = 451.699, y = -980.356, z = 29.689 },
},

Vehicles = {
  {
    Spawner    = { x = 454.69, y = -1017.4, z = 27.430 },
    SpawnPoint = { x = 438.42, y = -1018.3, z = 27.757 },
    Heading    = 90.0,
  }
},

Helicopters = {
  {
    Spawner    = { x = 466.477, y = -982.819, z = 42.691 },
    SpawnPoint = { x = 450.04, y = -981.14, z = 42.691 },
    Heading    = 0.0,
  }
},

VehicleDeleters = {
  { x = 462.74, y = -1014.4, z = 27.065 },
  { x = 462.40, y = -1019.7, z = 27.104 },
},

BossActions = {
  { x = 448.417, y = -973.208, z = 29.689 }
},

},

BCSO = {

Blip = {
  Pos     = { x = 1853.78, y = 3688.08, z = 38 },
  Sprite  = 60,
  Display = 4,
  Scale   = 1.2,
  Colour  = 29,
},

AuthorizedWeapons = {
  { name = 'WEAPON_NIGHTSTICK',       price = 200 },
  { name = 'WEAPON_COMBATPISTOL',     price = 300 },
  { name = 'WEAPON_ASSAULTSMG',       price = 1250 },
  { name = 'WEAPON_ASSAULTRIFLE',     price = 1500 },
  { name = 'WEAPON_PUMPSHOTGUN',      price = 600 },
  { name = 'WEAPON_STUNGUN',          price = 500 },
  { name = 'WEAPON_FLASHLIGHT',       price = 80 },
  { name = 'WEAPON_FIREEXTINGUISHER', price = 120 },
  { name = 'WEAPON_FLAREGUN',         price = 60 },
  { name = 'WEAPON_STICKYBOMB',       price = 250 },
  { name = 'GADGET_PARACHUTE',        price = 300 },
},

AuthorizedVehicles = {
  {name = 'police' , label = 'Police Vehicle 1'},
  {name = 'police2', label = 'Police Vehicle 2'},
  {name = 'police3', label = 'Police Vehicle 3'},
  {name = 'police4', label = 'Police Vehicle 4'},
  {name = 'policeb', label = 'Motorcycle'},
  {name = 'policet', label = 'Transport Van'},
},

Cloakrooms = {
  { x = 1852.09, y = 3684.12, z = 33.3 },
},

Armories = {
  { x = 1857.17, y = 3689.45, z = 33.3 },
},

Vehicles = {
  {
    Spawner    = { x = 1865.79, y = 3687.97, z = 33.3 },
    SpawnPoint = { x = 1863.74, y = 3680.65, z = 32.7 },
    Heading    = 30.0,
  }
},

  Helicopters = {
  {
    Spawner    = { x = 466.477, y = -982.819, z = 42.691 },
    SpawnPoint = { x = 450.04, y = -981.14, z = 42.691 },
    Heading    = 320.0,
  }
},

VehicleDeleters = {
  { x = 1853.94, y = 3675.92, z = 32.7 },
  { x = 1850.46, y = 3674.05, z = 32.7 },
},

BossActions = {
  { x = 1848.6, y = 3689.64, z = 33.3 }
},

},

PBPD = {

Blip = {
  Pos     = { x = -446.05, y = 6013.7, z = 31.7164 },
  Sprite  = 60,
  Display = 4,
  Scale   = 1.2,
  Colour  = 29,
},

AuthorizedWeapons = {
  { name = 'WEAPON_NIGHTSTICK',       price = 200 },
  { name = 'WEAPON_COMBATPISTOL',     price = 300 },
  { name = 'WEAPON_ASSAULTSMG',       price = 1250 },
  { name = 'WEAPON_ASSAULTRIFLE',     price = 1500 },
  { name = 'WEAPON_PUMPSHOTGUN',      price = 600 },
  { name = 'WEAPON_STUNGUN',          price = 500 },
  { name = 'WEAPON_FLASHLIGHT',       price = 80 },
  { name = 'WEAPON_FIREEXTINGUISHER', price = 120 },
  { name = 'WEAPON_FLAREGUN',         price = 60 },
  { name = 'WEAPON_STICKYBOMB',       price = 250 },
  { name = 'GADGET_PARACHUTE',        price = 300 },
},

AuthorizedVehicles = {
  {name = 'sheriff2' , label = 'Sheriff SUV'},
  {name = 'police2', label = 'Police Vehicle 2'},
  {name = 'police3', label = 'Police Vehicle 3'},
  {name = 'police4', label = 'Police Vehicle 4'},
  {name = 'policeb', label = 'Motorcycle'},
  {name = 'policet', label = 'Transport Van'},
},

Cloakrooms = {
  { x = -443.283, y = 6012.85, z = 30.7 },
},

Armories = {
  { x = -449.202, y = 6017.09, z = 30.7 },
},

Vehicles = {
  {
    Spawner    = { x = -460.34, y = 6014.79, z = 30.4829 },
    SpawnPoint = { x = -454.348, y = 6001.85, z = 30.4829 },
    Heading    = 90.0,
  }
},

  Helicopters = {
  {
    Spawner    = { x = -466.446, y = 6000.4, z = 30.5737 },
    SpawnPoint = { x = -474.999, y = 5989.13, z = 30.6287 },
    Heading    = 90.0,
  }
},

VehicleDeleters = {
  { x = -482.904, y = 6024.91, z = 30.4829 },
  { x = -479.382, y = 6028.29, z = 30.4829 },
},

BossActions = {
  { x = 1848.6, y = 3689.64, z = 33.3 }
},

},

}

Config.AuthorizedVehicles = {
Shared = {
{
model = ‘police’,
label = ‘Police Cruiser’
},
{
model = ‘pbus’,
label = ‘Police Prison Bus’
}
},

recruit = {

},

officer = {
	{
		model = 'police3',
		label = 'Police Interceptor'
	}
},

sergeant = {
	{
		model = 'policet',
		label = 'Police Transporter'
	},
	{
		model = 'policeb',
		label = 'Police Bike'
	}
},

intendent = {

},

lieutenant = {
	{
		model = 'riot',
		label = 'Police Riot'
	},
	{
		model = 'fbi2',
		label = 'FIB SUV'
	}
},

chef = {
    {
		model = 'sheriff2',
		label = 'Sheriff SUV'
	},
	{
		model = 'police3',
		label = 'Interceptor'
	}

},

boss = {

}

}

Here is something i discovered in the F8 console after trying to spawn a police car from garage…I tried tracking it back but no luck then i went and installed latest updates and reinstalled current and same out come…



Config.AuthorizedVehicles = {
Shared = {
{
model = ‘police’,
label = ‘Police Cruiser’
},
{
model = ‘pbus’,
label = ‘Police Prison Bus’
},
{
model = ‘police3’,
label = ‘Police Interceptor’
},
{
model = ‘policet’,
label = ‘Police Transporter’
},
{
model = ‘policeb’,
label = ‘Police Bike’
},
{
model = ‘riot’,
label = ‘Police Riot’
},
{
model = ‘fbi2’,
label = ‘FIB SUV’
},
{
model = ‘sheriff2’,
label = ‘Sheriff SUV’
},
{
model = ‘police3’,
label = ‘Interceptor’
}
},

Well I have fixed it… its a simple fix but i got it as i an learning .LUA more and more every day you never know it all we all learn everyday… young or old… so if someone here has the same issue with cars not spawning ill be glad to help you…

I’m having the same issue with the cars not spawning at the police station can you help me

PM sent

Nice script, been using since day 1.
However, you are only able to put in 1 person in the back of your vehicle :confused:

1 Like

I can’t see boss menu ingame, why?

I have this Problem with the Car Spawner too. Can you help me please, I am frustrated, and my Head is hurting from my Desk :smiley:

Thank you so much!

If you need help with server development add me 天国#5944

1 Like

sure https://discord.gg/kn6C4S

How can I delete police from jobcenter?

In your sql go in jobs and you will see police or LSPD type 1 for whitelist

In the boss menu, when I press the “E” I do not see anything in that menu. How do I solve it? It just happens to me in the boss’s menu.