[Release] [ESX] [Police Job]


Use version 1.3.0 and check the requirements in the github

1 Like

I currently have this I am saying I am having issues with that stuff inside of the mod.

im haveing the issue of people being able to shoot while cuffed.

these are the settings for the handcuff

– Handcuff
Citizen.CreateThread(function()
while true do
Wait(0)
if IsHandcuffed then
DisableControlAction(0, 142, true) – MeleeAttackAlternate
DisableControlAction(0, 30, true) – MoveLeftRight
DisableControlAction(0, 31, true) – MoveUpDown
DisableControlAction(0, 24, true) – Shoot
DisableControlAction(0, 92, true) – Shoot in car
DisableControlAction(0, 75, true) – Leave Vehicle

end

end
end)

can i get a link to the discord?

I am having a small issue with the police ranks I made in the database not being able to use the f6 menu or doorlocks do you know a fix for this?

I cant open buyweapons menu, this is the error I have

@Sorrora Do you have the old version of it?

check to see if your server settings from the company are set to auto-overwrite disable if so
Cheers!

I think your weaponname is wrong.

Set the car price to 0

Dat doesn’t work, I already have police working

So when you buy a car on the policeshop, if you disconect from the game, where does the vehicle go so that you can recover it. Because when I go back to try to get it its shows that the vehicle is already out. Also is there a way i could change that instead of update the index ‘state’ on the table owned_vehicles, that it updates the index ‘state’?

you can change that on config.lua there is an option that allows colleagues blips. set it to true.

1 Like

I have a issue with the police society money. I got it working just fine on the taxi job. I changed the appropriate config files. Set my self to boss. And was able to deposit and withdraw money from the taxi bank account. But when I do the same thing on the police job nothing happens.

Can some one tell me what I’m doing wrong? Did I for get something?

server.cfg

start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start ■■■■■■■
start scoreboard
start playernames
#inserted trough ZAP ressourcesystem
exec resources/vMenu/config/permissions.cfg
start vMenu
start mysql-async
start essentialmode
start esplugin_mysql
start es_admin2
start async
start cron
start es_extended
start instance
start es_camera
start skinchanger
start esx_accessories
start esx_addonaccount
start esx_addoninventory
start esx_phone
start esx_ambulancejob
start esx_animations
start esx_atm
start esx_bankerjob
start esx_barbershop
start esx_basicneeds
start esx_billing
start esx_boat
start esx_boilerplate
start esx_clotheshop
start esx_cruisecontrol
start esx_datastore
start esx_dmvschool
start esx_drugs
start esx_garage
start esx_holdup
start esx_identity
start esx_joblisting
start esx_jobs
start esx_license
start esx_lscustom
start esx_mecanojob
start esx_menu_default
start esx_menu_dialog
start esx_menu_list
start esx_migrate
start esx_optionalneeds
start esx_policejob
start esx_property
start esx_realestateagentjob
start esx_rpchat
start esx_service
start esx_shops
start esx_sit
start esx_skin
start esx_society
start esx_status
start esx_taxijob
start esx_vehicleshop
start esx_voice
start esx_weaponshop
start es_ui
start async
start cron
start es_camera
start es_extended
start esx_accessories
start esx_addonaccount
start esx_addoninventory
start esx_ambulancejob
start esx_animations
start esx_atm
start esx_bankerjob
start esx_barbershop
start esx_basicneeds
start esx_billing
start esx_boat
start esx_boilerplate
start esx_clotheshop
start esx_cruisecontrol
start esx_datastore
start esx_dmvschool
start esx_drugs
start esx_garage
start esx_holdup
start esx_identity
start esx_joblisting
start esx_jobs
start esx_license
start esx_lscustom
start esx_menu_default
start esx_menu_dialog
start esx_migrate
start esx_optionalneeds
start esx_phone
start esx_policejob
start esx_property
#start esx_randomevents
start esx_realestateagentjob
start esx_rpchat
start esx_service
start esx_shops
start esx_sit
start esx_skin
start esx_society
start esx_status
start esx_taxijob
start esx_vehicleshop
start esx_voice
start esx_weaponshop
#start esx_whitelist
#start esx_whitelistEnhanced
start instance
start skinchanger

esx_society\config.lua

Config = {}
Config.Locale = ‘fr’
Config.EnableESXIdentity = true
Config.MaxSalary = 3500

esx_policejob\config.lua


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

esx_taxijob\config.lua


Config.MaxInService = -1
Config.EnablePlayerManagement = true
Config.EnableSocietyOwnedVehicles = true

Update: Fixed, my server.cfg was not set up correctly thanks to ZAP-hosting. Don’t use their resource tool cause than this shit happens. esx_police was started before esx_society, and that’s bad.

Hi can someone help me with this I’m trying to add a second Vehicle spawner but I’m not sure how I’ve done it to the armory, cloakrooms and VehicleDeleters but the vehicle spawner done differently please let me know if you know how thanks.

    Cloakrooms = {
		{ x = 452.600, y = -993.306, z = 29.750 },
		{ x = 1849.13, y = 3689.53, z = 33.27 },
		{ x = -447.77, y = 6008.81, z = 30.72 },
	},

	Armories = {
		{ x = 451.699, y = -980.356, z = 29.689 },
		{ x = 1857.2, y = 3689.02, z = 33.27 },
		{ x = -449.45, y = 6016.65, z = 30.72 },
	},
	
	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 },
		{ x = 1871.1, y = 3692.13, z = 32.61 },
		{ x = -456.37, y = 6025.07, z = 30.34 },
	},

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

Update: This is the given error.

Error running system event handling function for resource esx_society: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server/main.lua:68: attempt to index a nil value (local ‘society’)
stack traceback:
server/main.lua:68: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function <citizen:/scripting/lua/scheduler.lua:218>
stack traceback:

esx_society\server\main.lua:68

TriggerEvent(‘esx_addonaccount:getSharedAccount’, society.account, function(account)

Update: Fixed, my server.cfg was not set up correctly thanks to ZAP-hosting. Don’t use their resource tool cause than this shit happens. esx_police was started before esx_society, and that’s bad.

i got the same thing

How would I go about making the police barrier unbreakable?

I’m currently trying to implement multiple available uniforms for my officers in the cloakroom for specific ranks, so for instance grade 3 can have 2 uniforms to select between without having to make it in /skin.
Any information on how to achieve this would be appreciated.

did you get the police departments figured out how to add them?