[Release] Simple Announcements - A Basic and Simplified Announcer w/Easy Configuration

Simple Announcements - A Basic and Simplified Announcer


Simple Announcer is one of my first scripts, and many more to come. It’s a basic script however, and since it is there really isn’t much to it. The only important thing is the configuration file which you can change to however you like. I’ve also included a basic prefix so it stands out different to the other messages, such as player messages and what not.

Screenshots

Current Features


  • Minimal and optimized code, very simple and short
  • Easy to change configuration and settings
  • Time interval between each sent message
  • Broadcast announcements with a permission based command (Refer below to use this)
  • Dynamic error checking, if a message is less than 3 characters it will be considered an invalid
    message
  • Automatic auto announcement disabling, meaning if there are no messages in the list located in the config.lua file it will automatically disable message disabling

Planned Features


  • Permission based announcements such as an admin announcement

Have more ideas? Please do by all means share.

Easy Installation Guide


Installing is as simple as downloading and throwing into your resource folder, but some may not find it easy.

  1. Download the latest release via GitHub
  2. Locate you’re resources folder within you’re server-data folder
  3. Drag and Drop into you’re resources folder
  4. Locate the config.lua file within the resource folder and edit to you’re needs
  5. Add the following lines into you’re server.cfg file, don’t forget to remove the -master at the end

start simple-announcements

To use the permission based command, add an ace into you’re server.cfg file or wherever you have you’re automatic resources started from. You can copy and paste the example below, but if you want to have it to a different group only, such as superadmin just change the admin part.

add_ace group.admin command.announce allow

https://github.com/RageYT/simple-announcements

Credits


  • Thank you @xander1998 for helping me solve the issue in the beginning and also simplifying the code. I have learned many new things from you!
  • Another thanks to @AthenasEngineering for spiffing up the code and giving it some more fun feautres.
11 Likes

screenshots?

Ah yes, thanks for reminding me. :smiley:

1 Like

Done, screenshots added.

1 Like

cool! Also check this out

1 Like

Haha, just saw that on the GitHub fork, I’ll do that.

1 Like

Nice release!!!

1 Like

Thank you! :smiley:

Cool.

1 Like

Nice to see some small scripts also

1 Like

Update | Version 1.2

Some new cool features have been added thanks to the help of AthenasEngineering from the FiveM Discord.

To use the permission based command, add an ace into you’re server.cfg file or wherever you have you’re automatic resources started from. You can copy and paste the example below, but if you want to have it to a different group only, such as superadmin just change the admin part.

add_ace group.admin command.announce allow

  • A new dynamic error checking, if the message within the announcement command isn’t longer than 3 characters it is considered an invalid message.
  • An automatic message disabler, meaning if there are no messages in the config.lua file then it automatically disables auto messages, thanks Athenas :smile:.
  • The new permission based command made to work around an ace, to add the ace refer to the main page of this repository.
  • The ability to announce from the console, RCON, or CLI.

Update | Version 1.3

Just a minor hotfix/update to the resource.

  • Added an admin prefix to the command /announce
  • Fixed some grammar issues
  • Removed message examples in message list to only one message

Download available via GitHub latest release.

how would I change the ace name of announce

Sorry but what do you mean? The command name?

the command name is /¿?¿?

Having an issue where the resource just doesn’t work. Added myself using ace permission. Added in to my resource folder. Did start simple-announcements in my server.cfg. Any help?

1 Like

What is the command for doing it through rcon/console?

Same issue…

is this something that can be used for something like, every day at 5 am sends an announcement that the server will be restarting soon? or does someone have to be at the keyboard to manually send the announcement?

any particular reason why im getting this error?

Error parsing script config.lua
failed to load script config.lua