In my solution, I check if player has weapon/money that officers might want to take server-side. Previous solutions were vulnerable e.g. if two or more officers were searching one player and all took weapon or money at the same time, they would all get that items.
esx_policejob
This resource for ESX adds police armories, vehicle garages and ability for cops to search, handcuff people and much more.
Requirements
-
Auto mode
-
Player management (boss actions and armory with buyable weapons)
-
ESX Identity Support
-
ESX License Support
-
ESX Service Support
-
ESX Status Support
Download & Installation
Using fvm
fvm install --save --folder=esx esx-org/esx_policejob
Using Git
cd resources
git clone https://github.com/ESX-Org/esx_policejob [esx]/esx_policejob
Manually
- Download https://github.com/ESX-Org/esx_policejob/archive/master.zip
- Put it in the
[esx]directory
Installation
- Import
esx_policejob.sqlin your database - Add this to your server.cfg:
start esx_policejob
-
- If you want player management you have to set
Config.EnablePlayerManagementtotrueinconfig.lua - If you want armory management you have to set
Config.EnableArmoryManagementtotrueinconfig.lua - If you want license management you have to set
Config.EnableLicensestotrueinconfig.lua - If you want service management you have to set
Config.MaxInServiceto a higher value than-1inconfig.lua
- If you want player management you have to set
Legal
License
esx_policejob - police script for ESX
Copyright (C) 2015-2020 Jérémie N'gadi
This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version.
This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details.
You should have received a copy Of the GNU General Public License along with this program. If Not, see http://www.gnu.org/licenses/.