NTeam Development
  • MAIN
  • INFORMATION
    • Support
    • Licenses
  • FAQ
    • You lack the required entitlement to use
    • Random props on map / textures bug / missing buildings
    • sp_manifest.ymt error?
    • Stuck on loading screen?
  • TUTORIALS
    • Conflicts
    • Bilboards
  • MAPS
    • Installation
    • Los Santos River
      • Installation
    • Custom Caffe
      • Elevator script
    • Mile High
      • Versions
      • Elevator script
    • Bridge V2
      • Blockade Script
    • Borders
      • Borders script
    • Monorail
    • Hospital
  • SCRIPTS
    • Admin Panel
      • ESX
        • Installation
        • Config
        • Webhook
      • QB-Core
        • Installation
        • Config
        • Webhook
    • Job Dashboard
      • ESX
        • Installation
        • Config
        • Presets
        • Logs
    • Pause Menu
      • ESX & QB-Core
        • Installation
        • Config
        • Style
    • Train scenario script
Powered by GitBook
On this page
  1. SCRIPTS
  2. Admin Panel
  3. ESX

Config

```lua
Config = {}

Config.Perms = {
	['ndev'] = {'admin', 'helper'}
}


-- COMMANDS --

Config.OpenAdminPanel = "ap" -- Command
Config.CloseAdminPanel = "apoff" -- Command
Config.TurnOnIDs = "id" -- Command

-- KEYBINDS --

Config.AdminPanelBind = "U"
Config.ToggleInvisible = "I"
Config.ToggleIDs = "O"

Config.IDsDistance = 600


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


```
PreviousInstallationNextWebhook

Last updated 1 year ago