[Release][EssentialMode] /me /911 /dispatch Scripts


#21

hi how do you kick/ban people i am new to the server side of things


#23

There’s a list of scripts here :slight_smile:

You’ll find a blacklist script

If think there’s a kick command provided into es_admin ressource (essential)


#24

my essentials folder does not have sv_admin its in the es_admin resource but i added it to that and it doesent work.


#25

i added it to my sv_admin.lua and it works, mine looks like

i have changed the /me to /ad (advert) as /me was global so thought it would be better as a server wide advert.


#26

Whenever I install this script, I get an error.
Would anyone be able to help me get this working?


#27

I can’t seem to find where I need to put this with the latest Essentialmode.

My files don’t have an sv_admin.lua.


#28

anybody know where i can put this would be great to get it working


#29

I know no one is really replying in this thread anymore, but if anyone could help me solve this not working for me i would appreciate it!


#30

Did you ever find out where to put it?


#31

did you figure it out? in=m wondering where to put it myself…


#32

Has anyone converted this to fx?


#33

do you think you can make a calling script for es_admin2 i tried to make mine but is being a pain in the ass

–CALLING
TriggerEvent(‘es:addCommand’, ‘CALLING’, function(source, args, user)
table.remove(args, 1)
TriggerClientEvent(‘chatMessage’, source, “CALLING”, {255, 0, 0}, " (^5" … GetPlayerName(source) …" | “…source…”^0) " … table.concat(args, " "))

TriggerEvent("es:getPlayers", function(pl)
	for k,v in pairs(pl) do
		TriggerEvent("es:getPlayerFromId", k, function(user)
			if(user.getPermissions() > 0 and k ~= source)then
				TriggerClientEvent('chatMessage', k, "CALLING", {255, 255, 255}, " (^0" .. GetPlayerName(source) .." | "..source.."^0) " .. table.concat(args, " "))
			end
		end)
	end
end)

end, {help = “Sent a CALLING to the entire server”, params = {{name = “CALLING”, help = “Call a Player in the session”}}})


#34

Here is my edited verison of the script, I can show you what I did to add my own commands, and you can get the hang of it and play around with it. Youll eventually figure it out.

TriggerEvent('es:addGroupCommand', 'dispatch', "admin", function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "^5[911]", {30, 144, 255}, " ^1 Dispatcher:^0 " .. table.concat(args, " "))
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)

-- 911 CALL
TriggerEvent('es:addGroupCommand', '911', "user", function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "^5[911]", {30, 144, 255}, " (^1 Caller ID: ^3" .. GetPlayerName(source) .." | "..source.."^0 ) " .. table.concat(args, " "))
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)

-- ME
TriggerEvent('es:addGroupCommand', 'me', "user", function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "^3[Me]", {255, 0, 0}, " (^2 " .. GetPlayerName(source) .." ^0 ) " .. table.concat(args, " "))
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)
-- DO
TriggerEvent('es:addGroupCommand', 'do', "user", function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "^3[Do]", {255, 0, 0}, " (^2 " .. GetPlayerName(source) .." ^0 ) " .. table.concat(args, " "))
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)
-- AD
TriggerEvent('es:addGroupCommand', 'ad', "user", function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "^2[AD]", {255, 0, 0}, " (^2 " .. GetPlayerName(source) .." ^0 ) " .. table.concat(args, " "))
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)
-- NEWS
TriggerEvent('es:addGroupCommand', 'news', "user", function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "^3[NEWS]", {255, 0, 0}, "" .. table.concat(args, " "))
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)

-- OOC
TriggerEvent('es:addGroupCommand', 'ooc', "user", function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "^6[OOC]", {255, 0, 0}, " (^2 " .. GetPlayerName(source) .." ^0 ) " .. table.concat(args, " "))
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)

-- TWEET
TriggerEvent('es:addGroupCommand', 'tweet', "user", function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "", {255, 0, 0}, " ^5 " .. GetPlayerName(source) .." ^5[Tweets]: ^0  " .. table.concat(args, " "))
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)

-- Example Command
TriggerEvent('es:addGroupCommand', 'ass', "user", function(source, args, user)
	TriggerClientEvent('chatMessage', -1, "EatAss Club", {255, 0, 0}, " ^2 " .. GetPlayerName(source) .." : ^5  " .. table.concat(args, " "))
end, function(source, args, user)
	TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insufficienct permissions!")
end)

on my server, admins are dispatchers most of the time, im actually in the process of trying to figure out how to add a new group called emergency and allow people to access it. im new at this so dont cut my throat


#35

Am I missing something? I do not have an sv_admin file in my EssentialMode resource (nor esplugin or es_admin2). I am using ZAP-Hosting. EssentialMode is latest version and a one-click install on the host.


#36

Bro, this is from back when cfx servers were a thing. I don’t think this works anymore


#37

This is probably the 10th script I’ve come across with the same answer. Why the heck aren’t these releases separated from what is NOW and not then? Even with GTA5-Mods.com, I can’t find a script I like without it not being supported anymore.