esx_adminplus
esx_adminplus copied to clipboard
Administrator commands for ESX 1.2
Make sure to check esx_adminplus on Fivem forum
ESX AdminPlus
My first public resource , created mainly for ESX V1.2 (AKA. V Final) (but also works with V1.1)
all commands available in this script:
server console commands:
- players | will return ID/name/group of online players
- reviveall | will revive all dead players
- say [message] | send announcement to all online players
ingame Admin commands
-
/admin | your exact rank on server
-
/tpm | teleport you to selected waypoint on map [thanks to qalle for his code]
-
/coords | print ped coords in serverconsole and F8
-
/report [message] | send
messageto all online admins [configurable cooldown] -
/announce [message] | send announcement to all online players
-
/bring [ID] | bring a player to your location
-
/bringback [ID] | teleport player back to where he was before
/bring -
/goto [ID] | teleport you to player with given ID
-
/goback | teleport you back where you was before
/goto -
/kill [ID] | instantly kill player with given ID
-
/freeze [ID] | freezing and making player invincible
-
/unfreeze [ID] | opposite of what
/freezedo -
/reviveall | revive all dead player on server (completely serversided, so no exploit can be done)
-
/a [message] | admin only chat with ranks and names
-
/warn [ID] | warn a player and kick if execeed max warns [configurable]
-
/noclip | Noclip [thanks to riftwebdev] for his code
special thanks to Cold Cat!!!#8585 for helping me on debugging and testing
INSTALLATION
-
download from github
-
extract esx_adminplus-master to your
resourcesfolder and remove-masterfrom folder name -
add start esx_adminplus AFTER es_extended(or ExtendedMode) and esx_ambulancejob in your server config
-
open up config.lua in esx_adminplus folder and config it as you want [note: default ranking system as i know was : superadmin > admin > moderator [it could be different for you, check your server cfg and see what is yours]
dependencies :
ESX V1 final || alternative : ExtendedMode
esx_ambulancejob [can be optional] (only for reviveall command)
Onesync [can be optional] (read below for more information)
notes:
there is no UI like es_admin , all commands are easy to use already
ESX version 1.1 and 1.2 both supported
Onesync needed for teleport / bring / goto / coords commands ( TLDR : anything that need coordination )
you can exclude rank(s) from accessing to a command by passing a table of ranks as second argument to
havePermission()if you don't know what that means , lets do an example : you want to exclude
moderatorfrom sending announcements , so : first , findRegisterCommand("announce", function(source, args, rawCommand)then findif havePermission(xPlayer) thenand add second argument tohavePermissionlike below:if havePermission(xPlayer, {'moderator'}) thenthats it!
my other scripts :
second hand vehicle Remastered
hope you like it!
if you need help about this script you can contact me @ https://discord.gg/a64JxMvuAM
I am gonna work on a new administrator menu (yes, MENU!) soon, but its gonna be a lot of work
Stay tuned!