functionNotify(msg,type)lib.notify({description=msg,type=type,position='bottom' })endRegisterNetEvent('uniq_deathmatch:Notify', Notify)functionLockInventory(bool)endifInv.oxthenfunctionLockInventory(bool)ifboolthenTriggerEvent('ox_inventory:disarm', true)endexports.ox_inventory:weaponWheel(bool)LocalPlayer.state.invBusy=bool -- you can also add here healing for wounds etcendelseifInv.qbthenfunctionLockInventory(bool)LocalPlayer.state.inv_busy=bool -- you can also add here healing for wounds etcendelseifInv.qsthenfunctionLockInventory(bool)exports['qs-inventory']:setInventoryDisabled(bool) -- you can also add here healing for wounds etcendend
Discord = {
url = '', -- url here
title = 'Server Name',
/*
https://www.spycolor.com/
['default'] = 14423100,
['blue'] = 255,
['red'] = 16711680,
['green'] = 65280,
['white'] = 16777215,
['black'] = 0,
['orange'] = 16744192,
['yellow'] = 16776960,
['pink'] = 16761035,
['lightgreen'] = 65309,
*/
color = 65309, -- green
imageUrl = 'https://cdn.discordapp.com/attachments/1126197898439295066/1129791542379434004/discord_banner_uniq.png', -- optional, if you dont want it put ''
}
function HasPermission(playerId)
if IsPlayerAceAllowed(playerId, 'command') then return true end
return false
end
function GiveItem(playerId, item, count) end
if Inv.ox then
function GiveItem(playerId, item, count)
exports.ox_inventory:AddItem(playerId, item, count)
end
elseif Inv.qb then
function GiveItem(playerId, item, count)
exports['qb-inventory']:AddItem(playerId, item, count)
end
elseif Inv.qs then
function GiveItem(playerId, item, count)
exports['qs-inventory']:AddItem(playerId, item, count)
end
end
-- if you wnat to use rp name in scoreboard you can edit that her
function PlayerName(playerId)
return GetPlayerName(playerId)
end