![[PAID][ESX] Aduty | MK-Services main image](https://forum-cfx-re.akamaized.net/optimized/4X/9/0/2/9021a3ab134ce33009035817f9b28916c22906dd_2_690x388.jpeg)
Price
UnknownA script by Pain1435
Price
UnknownThis resource is compatible with ESX v1.1 / ESX 1.2 (v1 Final) / ESX Legacy (v1.3 - v1.5)/ Extendedmode.
A simple admin duty script provides you good configuration possibilities.
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 |
No approved reviews found for this script yet.