[RELEASE] Badger-911 (A simple, but efficient 911 script)

What?

Odd. This works fine on my end, so I am not really sure

@OfficialBadger Is there a way to make to that when cops are offduty they dont get the alerts? I know it’ll be something like if esx.Job == police… But trying to get that working just got me to break the code… xd

Could that be a feature by any chance?

Never really planned to make this ESX, but maybe in the future although I doubt it. Hopefully someone will just fork it with ESX in mind for their fork

I’ve just thought about a way to do it, if the player gets the discord role “onduty” by reacting to a message, the script would update without a reset/server reset?

No cause it caches. Constantly doing discord role updates would get rate limited

So if you give them the role they won’t recieve alerts until the server restarts, true?

Basically. There’s more to it, but that’s the gyst

1 Like

Looks like a great resource for 911. Maybe add a /onduty command though so when we are off duty, we don’t see the calls.

1 Like

uh so when i respond to a calll the waypoint is a random one in LS. Its literally the same for every call

You may be using OneSync infinity is my guess

no sir

u wanna get in dm’s so i can show u?

The script works fine for me, so the problem is only on your end sadly…

1 Like

ok I will just re download i guess

I’m having this issue as well, just downloaded and not using one sync.

NEW UPDATE

No longer a Requirement

New Requirement

So every the script is working with Discord Permissions, and the webhook is sending the notify to my Discord, just wanted to know why the Player Location passed through is always:

{x=0.0,y=0.0,z=0.0}

Half the people above in the comments reported the same bug. This can be replicated in less than 5 minutes by following the instructions given.

In my logs i see this: PLAYERNAME received Badger-911 permissions SUCCESS
I have essentials running, but i don’t know if that is a problem?

The script cannot learn the players location?

How can i fix this? Without the ability for Police to respond and know where to go, it’s pretty useless which is a shame as it looked like a great script design.

same issue here

You should add a sound for the cops to hear when someone makes a 911 call to let them know