Skip to content

ramonbrugman/esx_adminplus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 message to 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 /freeze do

  • /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

  1. download from github

  2. extract esx_adminplus-master to your resources folder and remove -master from folder name

  3. add start esx_adminplus AFTER es_extended(or ExtendedMode) and esx_ambulancejob in your server config

  4. 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 moderator from sending announcements , so : first , find RegisterCommand("announce", function(source, args, rawCommand) then find if havePermission(xPlayer) then and add second argument to havePermission like below: if havePermission(xPlayer, {'moderator'}) then thats it!

my other scripts :

second hand vehicle

Advanced Job System

Advanced Kit System

hope you like it!

if you need help about this script you can contact me @ https://discord.com/invite/Mgyg2nVRhC

I am gonna work on a new administrator menu (yes, MENU!) soon, but its gonna be a lot of work

Stay tuned!

About

Administrator commands for ESX 1.2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%