[Release] [ESX] [Police Job]

Okay so when i go into the PD and press ‘E’ to select clothes nothing happens and i can not select it again

Do i need esx clothing to get the police clothing to work?

How did you fix the issue where the menu doesnt show when you press ‘E’ on the blip?

Message me your Discord information please. :slightly_smiling_face:

I have a problem while pressing E on the police garage.
When i press it all blue circles dosent work why ?
How can i fix it ?

Hi!

Is possible to set up communication between PoliceJob and Noplayerblips script?

So only cops can see cops on minimap?

1 Like

How do i add additnal cloakrooms, vehcle spawn points. I have tried to do it however nothing has happened. Here is the pastebin. https://pastebin.com/XF6W4Gex

I’ve been trying to fix this glitch too. I can use the armory and such but it won’t let me open the vehicle spawn menu.

[ERROR] [MySQL] An error happens on MySQL for query “SELECT * FROM police WHERE identifier = ‘steam:000000’ {@identifier=steam:000000”: Table ‘essentialmode.police’ doesn’t exist

I get this error for police job. Ignore the steam id i changed it to hide the actual one.

Any help on this would be much appreciated as i can’t use police job at all but can select job

Anyone figured out how to add more station locations?

I’ve got cloakroom and Armories working as shown below;

    Cloakrooms = {
      { x = 452.600, y = -993.306, z = 29.750 }, 
      { x = 1852.2111816406, y = 3690.6887207031, z = 33.267078399658 }, --Sandy Shores
	},

    Armories = {
      { x = 451.699, y = -980.356, z = 29.689 }, 
      { x = 1848.4846191406, y = 3690.2133789063, z = 33.267074584961 }, --Sandy Shores
	},

But I cant get my Sandy shores locations to work for the Spawner and Spawnpoints. As soon as it sees a second set of coordinates it kills the whole job.

Thank you so much man! I think that was the main thing I messed up on, now I can finally have an additional functional station in sandy Shores.

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 = 'Véhicule de patrouille 1' },
  { name = 'police2', label = 'Véhicule de patrouille 2' },
  { name = 'police3', label = 'Véhicule de patrouille 3' },
  { name = 'police4', label = 'Véhicule civil' },
{ name = 'police8', label = 'Véhicule de patrouille 8' },
  { name = 'policeb', label = 'Moto' },
  { name = 'policet', label = 'Van de transport' },
{ name = 'policet', label = 'Van de transport' },
},

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 = 'Véhicule de patrouille 1' },
  { name = 'police2', label = 'Véhicule de patrouille 2' },
  { name = 'police3', label = 'Véhicule de patrouille 3' },
  { name = 'police4', label = 'Véhicule civil' },
{ name = 'police8', label = 'Véhicule de patrouille 8' },
  { name = 'policeb', label = 'Moto' },
  { name = 'policet', label = 'Van de transport' },
{ name = 'policet', label = 'Van de transport' },
},

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

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

Vehicles = {
  {
    Spawner    = { x = 1851.58, y = 3690.5, 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 = 'police',  label = 'Véhicule de patrouille 1' },
  { name = 'police2', label = 'Véhicule de patrouille 2' },
  { name = 'police3', label = 'Véhicule de patrouille 3' },
  { name = 'police4', label = 'Véhicule civil' },
{ name = 'police8', label = 'Véhicule de patrouille 8' },
  { name = 'policeb', label = 'Moto' },
  { name = 'policet', label = 'Van de transport' },
{ name = 'policet', label = 'Van de transport' },
},

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

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

Vehicles = {
  {
    Spawner    = { x = -449.812, y = 6011.46, z = 30.7 },
    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 }
},

},

}

The last answer got deleted, so here it is again.
The helicopter coordinates are essentially copy-pasted from LSPD because there is not fitting sight in Sandy etc. When you get rid of the heli coords, it crashes the whole script so they have to be left in there, unfortunately.

3 Likes

I’m not sure why at all but all my police keep getting randomly fired, over and over again… someone please help.

Does anyone have a working police job with SocietyOwned Vehilce etc, and where can I put everything in the config to true?

people that are cuffed can get out of the car instantly.

Hey,

So I am using the code that you provided for the policejob stations. A problem I am not having is when I press “E” to open the car spawner for example, it goes away, and then I cannot access any of the other blips on the map.

Help?

Another issue I ran into is that I can’t spawn objects at the start, another user has to spawn one and then it works for me, although buggy.

do you have all of the required dependencies for esx_policejob?

how do you add cloackrooms grages to sandy and paleto stations and the armory