Emergency Alert System (a.k.a Ear Assault System)

Lance its still working in my server.

having trouble getting it to work says loaded resource eas-fivem but couldnt load config.lua

nevermind i fixed it it conflicted with vRP player list

Anyone could guide me to make this so it only allows ‘admin’ and ‘superadmin’ groups to use the function ? Thanks.

how can i make it where it actually says via voice what the alert is? Does the audio file need to contain that information

I am having problems with this working as well. Maybe the developer can look into the issue and provide a possible solution?
:wink:

I originally planned to use TTS for the alert along with the sounds, but it didn’t work. I’ll see if I can figure something out later down the line.

WARNING: DOWNLOAD THIS HOTFIX NOW AND ADD YOUR ADMINS TO THE SERVER_CONFIG.LUA FILE

is it possible to change the background and put Weazel news ? :thinking:

I currently run my fivem on linux and get this error when typing /alert LSPD
Im assuming it needs nativeui im not sure how to add nativeui to linux fivem server if that is the case.

cfx> Error running system event handling function for resource eas: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: @eas/server.lua:21: attempt to call a nil value (global ‘isAdmin’)
stack traceback:
@eas/server.lua:21: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182

thats your side, re-download don’t change anything then try, as it works fine for me.

I have the exact same error… its been happening since the updates…

I installed it the way it says to, but when I type: “/alert LSSD” nothing happens. any ideas?

I’ve been having the same issues. I found that reverting to 1.5 of the script works fine.
https://github.com/DevLanceGood/eas-fivem/releases/tag/v1.5

Will this be updated?

1 Like

keep getting this. I have placed my steam id in for admin… so… Yes 1.5 works fine but i dont wnat just anyone being able to send alerts…

Error running system event handling function for resource eas-fivem: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: @eas-fivem/server.lua:21: attempt to call a nil value (global ‘isAdmin’)
stack traceback:
@eas-fivem/server.lua:21: in upvalue ‘handler’
citizen:/scripting/lua/scheduler.lua:219: in function citizen:/scripting/lua/scheduler.lua:218
stack traceback:
[C]: in function ‘error’
citizen:/scripting/lua/scheduler.lua:41: in field ‘CreateThreadNow’
citizen:/scripting/lua/scheduler.lua:218: in function citizen:/scripting/lua/scheduler.lua:182

Hey man i found a way to fix your error.
in the file server.lua you have to take this part of the code from the bottom:

local function isAdmin(source)
local allowed = false
for i,id in ipairs(Config.EAS.admins) do
for x,pid in ipairs(GetPlayerIdentifiers(source)) do
if string.lower(pid) == string.lower(id) then
allowed = true
end
end
end
if IsPlayerAceAllowed(source, “lance.eas”) then
allowed = true
end
return allowed
end

and place it under the end from line 11 (the stringsplit function)

restart the server/resource after that and it should work (it did for me XD)

Hope this helps for everybody having trouble!!!

-Subtraho

1 Like

Fixed: Update v1.8

Since last update:

Yes i added my steam to admin thingy

is there a way to make this alert a group like using it a a pager system for a volunteer fire dept

so basically using it to do alert group.firefighter or group.ems