Accessible files
Here you can find all the files which can be edite to make the asset compatible with your server.
config.lua
Config = {
Core = 'ESX', -- 'ESX' / 'QBCORE' | Other core setting on the 'core' folder.
Target = '', -- 'oxtarget' / 'qb-target'
BrutalNotify = true, -- Buy here: (4€+VAT) https://store.brutalscripts.com | Or set up your own notify >> cl_utils.lua
PanelControlMode = 'scroll', -- scroll
AllowedJobs = {'ballas', 'triads', 'vagos', 'lostmc', 'families', 'angels'},
HeadBag = {
BlackFade = true,
},
HandCuff = {
Freeze = false, -- Do you want to freeze the player while he is cuffed? true / false
CuffObject = true, -- Do you want to use Cuff Object on the player's hand? true / false
FastCuff = {Command = 'cuff', Control = '', Suggestion = 'To cuff a player faster'},
-- More controls: https://docs.fivem.net/docs/game-references/controls/
DisableControls = {24,257,25,263,32,34,31,30,45,22,44,37,23,288,289,170,167,73,199,59,71,72,36,47,264,257,140,141,142,143,75}, -- Disabled controls while the player is cuffed.
},
Hostage = {
AllowedWeapons = {
`WEAPON_PISTOL`,
`WEAPON_COMBATPISTOL`,
},
DisableControls = {24,257,25,263,32,34,31,30,45,22,44,37,23,288,289,170,167,73,199,59,71,72,36,47,264,257,140,141,142,143,75},
},
TyreSlash = {
AllowedWeapons = {
`WEAPON_KNIFE`,
`WEAPON_BOTTLE`,
`WEAPON_DAGGER`,
`WEAPON_HATCHET`,
`WEAPON_MACHETE`,
`WEAPON_SWITCHBLADE`
},
},
Commands = {
JobMenu = {
Command = 'gjobmenu',
Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Suggestion = 'Open Job Menu'
},
PutBagOnMyself = {
Command = 'mebag',
Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Suggestion = 'Put Bag on your head'
},
PutBagOnOtherPeople = {
Command = 'bag',
Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Suggestion = 'Put Bag on others head'
},
Hostage = {
Command = 'hostage',
Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Suggestion = 'Hostage an other people'
},
PutPlayerInVehicle = {
Command = 'putplayerinvehicle',
Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Suggestion = 'Put player in vehicle',
BlacklistedVehicles = {'bf400'}, -- false = not in use
},
PierceTyre = {
Command = 'piercetyre',
Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Suggestion = 'Pierce the tyre'
},
Knockout = {
Command = 'knockout',
Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Suggestion = 'Knockout player'
},
PullPlayer = {
Command = 'pull',
Control = '', -- Controls list: https://docs.fivem.net/docs/game-references/input-mapper-parameter-ids/keyboard/
Suggestion = 'Pull player'
},
},
-----------------------------------------------------------
-----------------------| TRANSLATE |-----------------------
-----------------------------------------------------------
Locales = {
Bag = 'Bag',
BagDescription = 'Quickly subdue players by placing a bag over their head.',
Hostage = 'Hostage',
HostageDescription = 'Take control of the situation by holding a player hostage.',
PutInVehicle = 'Pick up',
PutInVehicleDescription = 'Securely place the player in the trunk to transport them.',
Tyre = 'Slash tyre',
TyreDescription = 'Disable vehicles by slashing the tire, leaving them stranded.',
Knockout = 'Knockout',
KnockoutDescription = 'Knock out players with a swift hit, rendering them unconscious.',
Pull = 'Pull',
PullDescription = 'Drag players by a rope tied to their leg, immobilizing them.',
Cuff = 'Cuff',
CuffDescription = 'Restrict player movement by cuffing their hands behind their back.',
},
-- Notify function EDITABLE >> cl_utils.lua
Notify = {
[1] = {"Gang Actios", "There is no player nearby", 5000, "error"},
[2] = {"Gang Actios", "You need the right weapon", 5000, "error"},
[3] = {"Gang Actios", "There is no vehicle nearby", 5000, "error"},
[4] = {"Gang Actios", "The tyre is already slashed", 5000, "error"},
[5] = {"Gang Actios", "Your hands are not free", 5000, "error"},
[6] = {"Gang Actios", "This is not a right vehicle for this", 5000, "error"},
[7] = {"Gang Actios", "Your job is not allove this", 5000, "error"},
},
}
client-utils.lua
ESX = Core
QBCore = Core
-- Buy here: (4€+VAT) https://store.brutalscripts.com
function notification(title, text, time, type)
if Config.BrutalNotify then
exports['brutal_notify']:SendAlert(title, text, time, type)
else
-- Put here your own notify and set the Config.BrutalNotify to false
-- Default ESX Notify:
--TriggerEvent('esx:showNotification', text)
-- Default QB Notify:
--TriggerEvent('QBCore:Notify', text, 'info', 5000)
-- OKOK Notify:
-- exports['okokNotify']:Alert('POLICE JOB',title, text, time, type, false)
end
end
function OpenMenuUtil()
InMenu = true
SetNuiFocus(true, true)
Citizen.CreateThread(function()
while InMenu do
N_0xf4f2c0d4ee209e20() -- it's disable the AFK camera zoom
Citizen.Wait(15000)
end
end)
DisplayRadar(false)
end
function DisableMinimap()
DisplayRadar(false)
-- Here you can add a trigger to hide your HUD system
end
function EnableMinimap()
DisplayRadar(true)
-- Here you can add a trigger to enable your HUD system
end
function HandCuffedEvent(cuffed)
if cuffed then
--exports['qs-smartphone']:canUsePhone(false)
--exports["lb-phone"]:ToggleDisabled(true)
else
--exports['qs-smartphone']:canUsePhone(true)
--exports["lb-phone"]:ToggleDisabled(false)
end
end
client-core.lua
Core = nil
if Config['Core']:upper() == 'ESX' then
local _esx_ = 'new' -- 'new' / 'old'
if _esx_ then
Core = exports['es_extended']:getSharedObject()
else
while Core == nil do
TriggerEvent('esx:getSharedObject', function(obj) Core = obj end)
Citizen.Wait(0)
end
end
LoadedEvent = 'esx:playerLoaded'
onPlayerDeath = 'esx:onPlayerDeath'
JobUpdateEvent = 'esx:setJob'
TSCB = Core.TriggerServerCallback
function GetPlayerJobDatas()
return Core.GetPlayerData().job
end
function GetClosestPlayerFunction()
return Core.Game.GetClosestPlayer()
end
function GetClosestVehicleFunction(coords, modelFilter)
return Core.Game.GetClosestVehicle(coords, modelFilter)
end
elseif Config['Core']:upper() == 'QBCORE' then
Core = exports['qb-core']:GetCoreObject()
LoadedEvent = 'QBCore:Client:OnPlayerLoaded'
JobUpdateEvent = 'QBCore:Client:OnJobUpdate'
TSCB = Core.Functions.TriggerCallback
function GetPlayerJobDatas()
return Core.Functions.GetPlayerData().job
end
function GetClosestPlayerFunction()
return Core.Functions.GetClosestPlayer()
end
function GetClosestVehicleFunction(coords, modelFilter)
return Core.Functions.GetClosestVehicle(coords, modelFilter)
end
end
server-core.lua
Core = nil
if Config['Core']:upper() == 'ESX' then
local _esx_ = 'new' -- 'new' / 'old'
if _esx_ == 'new' then
Core = exports['es_extended']:getSharedObject()
else
Core = nil
TriggerEvent('esx:getSharedObject', function(obj) Core = obj end)
while Core == nil do
Citizen.Wait(0)
end
end
RESCB = Core.RegisterServerCallback
GETPFI = Core.GetPlayerFromId
RUI = Core.RegisterUsableItem
UsersDataTable = 'users'
UserIdentifierValue = 'identifier'
function GetIdentifier(source)
local xPlayer = GETPFI(source)
while xPlayer == nil do
Citizen.Wait(1000)
xPlayer = GETPFI(source)
end
return xPlayer.identifier
end
function GetPlayerByIdentifier(identifier)
return Core.GetPlayerFromIdentifier(identifier)
end
elseif Config['Core']:upper() == 'QBCORE' then
Core = exports['qb-core']:GetCoreObject()
RESCB = Core.Functions.CreateCallback
GETPFI = Core.Functions.GetPlayer
RUI = Core.Functions.CreateUseableItem
UsersDataTable = 'players'
UserIdentifierValue = 'citizenid'
function GetIdentifier(source)
local xPlayer = GETPFI(source)
while xPlayer == nil do
Citizen.Wait(1000)
xPlayer = GETPFI(source)
end
return xPlayer.PlayerData.citizenid
end
function GetPlayerByIdentifier(identifier)
return Core.Functions.GetPlayerByCitizenId(identifier)
end
end
Last updated