This resource is compatible with ESX v1.1 / ESX 1.2 (v1 Final) / ESX Legacy (v1.3 - v1.5)/ Extendedmode.
Description
A simple admin duty script provides you good configuration possibilities.
Features
- Fully customizable outfits, commands, hotkeys and more
- Integrated Noclip
- Configurable sprint boost while in admin duty
- Adjustable notification event
- ESX events and prefix customizable
- No performance impact for normal users
- Low performance consumption (0.00ms - 0.05ms)
Buy: Click me (Secured by FiveM Escrow System)
Config Snippets:
MK = MK or {}
-- By default 'en' and 'de' are supported.
-- You can modify or add new translations in the translations.lua file
MK.Language = 'en'
MK.ESXEvents = {
GetSharedObject = 'esx:getSharedObject',
PlayerLoaded = 'esx:playerLoaded',
SetJob = 'esx:setJob',
SkinMenu = 'esx_skin:openSaveableMenu'
}
MK.AdutyCommand = 'aduty' -- The command that has to be called to enter/exit admin duty
MK.NoclipCommand = 'noclip' -- The command that has to be called to enable/disable noclip
MK.TpToWaypointCommand = 'tpm' -- Command that will allow the admin to teleport to a waypoint (Set to nil or '' to disable it)
MK.GotoCommand = 'goto' -- Command that will allow the admin to teleport to a player (Set to nil or '' to disable it)
MK.BringCommand = 'bring' -- Command that will allow the admin to teleport a player to himself (Set to nil or '' to disable it)
MK.CoordsCommand = 'coords' -- Command that will allow the admin to view his current coordinates (Set to nil or '' to disable it)
MK.SkinCommand = 'mkskin' -- Command that will allow the admin to change the skin of himself or others (Set to nil or '' to disable it)
MK.ResetSkinCommand = 'resetskin' -- Command that will allow the admin to reset the skin of himself or others (Set to nil or '' to disable it)
-- Adds a hotkey for entering/exiting admin duty.
-- User can change the keybind to another key in the GTA keybind settings.
MK.Hotkeys = {
Aduty = {
Enabled = true,
Description = 'Enter/exit admin duty',
DefaultKey = '', -- Use a default key like "F4" or leave it blank if you don't wish to set a default key
},
Noclip = {
Enabled = true,
Description = 'Enter/exit Noclip',
DefaultKey = '', -- Use a default key like "F7" or leave it blank if you don't wish to set a default key
}
}
MK.AdutyModifiers = {
SprintBoostEnabled = true -- Makes the user run faster while being in admin duty
}
MK.Notify = function(type, message)
if message ~= nil and message ~= '' then
if type == 'success' then
TriggerEvent('esx:showNotification', message)
elseif type == 'warning' then
TriggerEvent('esx:showNotification', message)
elseif type == 'error' then
TriggerEvent('esx:showNotification', message)
elseif type == 'info' then
TriggerEvent('esx:showNotification', message)
end
end
end
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | LUA: ~970 |
Support | Yes |