Before starting, make sure you have the latest version of qb_target Script installed on your server
You can fully customize the config file and customize the qb_target or qb_inventory or ox_invnetory scripts
Install the bob74_ipl
Add Local State
Disable Inventory
Open the qb-inventory/client/main.lua and replace lines 307 to 319 with the following code 👇
for i = 1, 5 do
RegisterCommand('slot_' .. i, function()
if LocalPlayer.state.Paintball then return end
local itemData = PlayerData.items[i]
if not itemData then return end
if itemData.type == "weapon" then
if holdingDrop then
return QBCore.Functions.Notify("Your already holding a bag, Go Drop it!", "error", 5500)
end
end
TriggerServerEvent('qb-inventory:server:useItem', itemData)
end, false)
RegisterKeyMapping('slot_' .. i, Lang:t('inf_mapping.use_item') .. i, 'keyboard', i)
end
Disable Dead Menu
Open the qb-ambulancejob/client/dead.lua and replace lines 103 to 125 with the following code 👇
Replace this code
AddEventHandler('gameEventTriggered', function(event, data)
if event == 'CEventNetworkEntityDamage' then
local victim, attacker, victimDied, weapon = data[1], data[2], data[4], data[7]
if not IsEntityAPed(victim) then return end
if victimDied and NetworkGetPlayerIndexFromPed(victim) == PlayerId() and IsEntityDead(PlayerPedId()) then
if LocalPlayer.state.Paintball then return end
if not InLaststand then
SetLaststand(true)
elseif InLaststand and not isDead then
SetLaststand(false)
local playerid = NetworkGetPlayerIndexFromPed(victim)
local playerName = GetPlayerName(playerid) .. ' ' .. '(' .. GetPlayerServerId(playerid) .. ')' or Lang:t('info.self_death')
local killerId = NetworkGetPlayerIndexFromPed(attacker)
local killerName = GetPlayerName(killerId) .. ' ' .. '(' .. GetPlayerServerId(killerId) .. ')' or Lang:t('info.self_death')
local weaponLabel = (QBCore.Shared.Weapons and QBCore.Shared.Weapons[weapon] and QBCore.Shared.Weapons[weapon].label) or 'Unknown'
local weaponName = (QBCore.Shared.Weapons and QBCore.Shared.Weapons[weapon] and QBCore.Shared.Weapons[weapon].name) or 'Unknown'
TriggerServerEvent('qb-log:server:CreateLog', 'death', Lang:t('logs.death_log_title', { playername = playerName, playerid = GetPlayerServerId(playerid) }), 'red', Lang:t('logs.death_log_message', { killername = killerName, playername = playerName, weaponlabel = weaponLabel, weaponname = weaponName }))
deathTime = Config.DeathTime
OnDeath()
DeathTimer()
end
end
end
end)
Set voice icon
Open pma-voice/client/init/proximity.lua and search for sendUIMessage and add the code below 👇
Please put your license in server/license.lua | If your script is encrypted, enter your license
If you're using a different inventory system, check if it allows disabling hotkeys and invBusy. If supported, add this feature toConfig.StartGame.HideHudAndMenusin the Paintball configuration in script, If you didn't find it, open a ticket in the , and we'll look into it.