QUASAR INVENTORY used for this script and not given!
The CONFIG of the ranks, so put the id of the rank :
Locker
Config.JobPoliceName = "police" -- Name of the font profession on your server
Config.GradePoliceForOpenBypass = 8 -- In-Game Grade of the job in order to modify the password
Config.GradePoliceForPassword = 7 -- In-Game Grade of the job in order to modify the password
Config.GradePoliceForName = 6 -- In-Game Rank of the job in order to modify the name of the locker
Config.GradePoliceForDelete = 9 -- Grade In-Game of the job in order to empty the locker
Investigation
Config.GradePoliceForCreateEnquete = 1 -- Create afin de créer des archives
Config.GradePoliceForArchiveEnquete = 2 -- Grade in order to archive an investigation
Config.GradePoliceForOpenArchive = 5 -- Rank in order to open the archives of the investigations
Config.GradePoliceForDeleteArchive = 6 -- Grade to permanently remove surveys
Operation of QUASAR INVENTORY for lockers :
local other = { -- Locker trunk storage
maxweight = 20000,
slots = 10,
}
TriggerServerEvent("inventory:server:OpenInventory", "stash", "police_prv_"..NumberCasier, other)
TriggerEvent("inventory:client:SetCurrentStash", "police_prv_"..NumberCasier)
Operation of QUASAR INVENTORY for investigations :
local other_enquete = { -- Storage Survey
maxweight = 10000,
slots = 20,
}
TriggerServerEvent("inventory:server:OpenInventory", "stash", "enquete_"..S_NumberEnquete, other_enquete)
TriggerEvent("inventory:client:SetCurrentStash", "enquete_"..S_NumberEnquete)
To create lockers in your database using a command :
-- Retirer cette commande une fois utilisé, c'est simple pour insérer les casiers dans la BDD
-- Remove this command once used, it's simple to insert the lockers in the DB
RegisterCommand("CreateInBdd", function()
CreateInBdd()
end)
function CreateInBdd()
for i=Config.Minimum, Config.Maixmum, 1 do
MySQL.ready(function()
MySQL.Async.execute("INSERT INTO s_police_casier (id, inv_name, name, password) VALUES (@id, @inv_name, @name, @password)",
{
['id'] = i,
['inv_name'] = "police_prv_"..i.."",
['name'] = "Casier : Disponible",
['password'] = math.random(1111, 9999)
},
function(result)
end)
end)
end
end
Deux scripts en un ! Ce script propose un systĂšme de casier pour les agents de police ainsi quâun systĂšme de dossier pour les enquĂȘtes. Veuillez noter que le Quasar Inventory est requis pour utiliser ce script, et que le fonctionnement avec dâautres types dâinventaires nâest pas garanti.
Pour les casiers, il est possible dâouvrir le casier Ă lâaide dâun code Ă 4 chiffres, de modifier le nom du casier, ainsi que dâautres fonctionnalitĂ©s configurables en fonction des grades du joueur
Two scripts in one! This script offers a locker system for police officers as well as a file system for investigations. Please note that the Quasar Inventory is required to use this script, and that operation with other types of inventories is not guaranteed.
For lockers, it is possible to open the locker using a 4-digit code, change the name of the locker, and other configurable features depending on the ranks of the player
Code is accessible | Yes |
Subscription-based | No |
Lines (approximately) | 700 |
Framework | ESX & QB |
Framework Version | Legacy & QB - 08/2023 |
SQL ressource | Mysql & @oxmysql |
Translation in script | FR, EN & Custom |
Support | Yes |
My scripts/mapping
Police Menu Extra [ESX (QB in readme.md)] (FREE)
VoteTopServeur [QB] (FREE)
Wheelchair [ESX & QB] (1⏠ESCROW or 2⏠OPEN-SOURCE)
Taxi [ESX & QB] (2⏠Open-Source)
Elevator UI [Standalone] (3⏠ESCROW or 7⏠OPEN-SOURCE)
Stretcher [ESX & QB] (5⏠ESCROW or 7⏠Open-Source)
Police lockers and investigation files [ESX & QB] (5⏠ESCROW or 10⏠OPEN-SOURCE)
JobTattoo [ESX & QB] (15⏠OPEN-SOURCE)
LB Phone Plugin : App News
Lockers UI [ESX & QB] (7⏠Escrow & 40⏠Open-Source)
Karting YMAP [FREE]
Race YMAP Grapeseed [FREE]
Race YMAP Port of Los Santos [FREE]