QB-Core
The installation of the script is extremely easy
Here are the steps to install the script
-- Add these lines to server.cfg
add_ace identifier.fivem:147138 command.adminpanel allow
add_ace identifier.fivem:147138 "adminpanel" allow
Config = {}
Config.acePermission = "adminpanel"
Config.Heal = "qb" -- "qb" (qb = qbox and qbcore) / "none" (none = SetEntityHealth)
-- COMMANDS --
Config.OpenAdminPanel = "ap" -- Command
Config.CloseAdminPanel = "apoff" -- Command
Config.TurnOnIDs = "id" -- Command
Config.ToggleNoclip = "ncp" -- Command
-- KEYBINDS --
Config.AdminPanelBind = "U"
Config.ToggleInvisible = "I"
Config.ToggleIDs = "O"
Config.IDsDistance = 600
-- CUSTOMIZATION --
Config.Clothing = "illenium-appearance" -- "illenium-appearance" / "qb-clothing" / custom
Config.Text = {
['tp_yourself'] = 'You can\'t teleport to yourself!',
['bring_yourself'] = 'You can\'t bring yourself!',
['spec_yourself'] = 'You can\'t spectate to yourself!',
['kick_yourself'] = 'You can\'t kick to yourself!',
['dm_yourself'] = 'You can\'t DM to yourself!',
['warn_yourself'] = 'You can\'t Warn to yourself!',
['ids_on'] = 'You turned on IDs!',
['ids_off'] = 'You turned off IDs!',
['reason'] = 'You must include a reason!',
-- Admin Message
['msg_header'] = 'ADMIN MESSAGE!',
['msg_label'] = 'Message!',
['msg_placeholder'] = 'Hmm..',
['msg_fromadmin'] = 'Message from Admin..',
-- Admin Warn
['warn_header'] = 'ADMIN MESSAGE! ',
['warn_label'] = 'Message! ',
['warn_placeholder'] = 'Hmm.. ',
['warn_fromadmin'] = 'Warning! ',
['warn_reason'] = 'Reason: ',
}
function SendTextMessage(msg)
SetNotificationTextEntry('STRING')
AddTextComponentString(msg)
DrawNotification(0,1)
--exports['okokNotify']:Alert('ADMIN PANEL', msg, 5000, 'info')
--exports['mythic_notify']:SendAlert('inform', msg)
--ESX.ShowNotification(msg)
--lib.notify({title = 'Info', description = msg, type = 'info'})
end
Config.Debug = true
Last updated