/NoMoreTroll

A fun little Freeze and tp mod for admins.

Primary LanguageLuaDo What The F*ck You Want To Public LicenseWTFPL

image

NoMoreTroll

A fun little Freeze and tp mod for admins.

Install:

Click the clone or download button and click download zip, once downloaded unzip the file and rename NoMoreTroll-master to NoMoreTroll and put this within your resource folder of your FiveM server.

To be able to use it all the time, open up your server.cfg and add ensure NoMoreTroll to the list of ensures, if you only want to use this script now and then and don't want it in your server.cfg then in game or via the server control type refresh(server/F8) or /refresh via the chat this will get the server to find the new files, then do start NoMoreTroll or /start NoMoreTroll from the chat.

Adding Ace Support:

To enable admins to use this script only add the below ace command to your user ace's in your server.cfg file

add_ace group.admin nomoretroll.admin allow 			# give admins script admins.

Then in your resource/{path}/NoMoreTroll open up the config.lua file and change the Ace Enabled option from false to true, you can see this below.

Ace = {
		-- Enable/Disable the Ace support nomoretrol.admin add below to your server.cfg
		-- add_ace group.admin nomoretroll.admin allow # give admins script admins.
		Enabled = false,

to

Ace = {
		-- Enable/Disable the Ace support nomoretrol.admin add below to your server.cfg
		-- add_ace group.admin nomoretroll.admin allow # give admins script admins.
		Enabled = true,

How to use:

In-game you can do /freeze PLAYERSERVERID true or false, if you do /freeze PLAYERSERVERID true then /tpj it will TP you to that player, once you have dealt with the problem you can unfreeze them or do whatever you need to then do /tpj to return to where you was before. /nomoretroll will show our basic about dialog and if you would like to warn a user before having to freeze them you can do /wt PLAYERSERVERID then it will send a warning saying you have reports of them been a troll or breaking rules and ask them to stop.

Can I use this script:

Yes please feel free to fork it as much and has hard as you like, this is under the WTFPL