Skip to content

Rexshack-RedM/rsg-essentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

rsg_framework

๐Ÿงฐ rsg-essentials

Quality-of-life utilities and fixes for RedM using RSG Core.

Platform License

A collection of small but essential features: AFK kick, Discord rich presence, eagle eye access, first-person shooting handling, bandana toggle, map zone labels, door unlocks, water interactions, and more. Modular client/server files make it easy to enable only what you need.


๐Ÿ› ๏ธ Dependencies

Locales: locales/en.json, fr.json, es.json, pt-br.json (loaded via lib.locale()).
Config: config.lua exposes toggles and parameters for each module.


โœจ Features (by module)

๐Ÿ‘ž AFK Kick (client/afk.lua, server/afk.lua)

  • Kicks AFK players after a timeout (default 1800s).
  • Staff groups (mod, admin, god) are exempt.
  • Client shows step-down warnings; server handles DropPlayer.

๐Ÿงฃ Bandana (client/bandana.lua, server/bandana.lua)

  • Toggle bandana on/off with proper ped meta tags.

๐Ÿฆ… Eagle Eye Access (client/eagleeye.lua)

  • Perโ€‘job control via Config.EagleEye: allow everyone, or only specific jobs (vallaw, rholaw, etc.).
  • Automatically enables/disables on resource start/stop and player job changes.

๐ŸŽฎ First Person Shooting (client/firstperson.lua)

  • If Config.FirstPersonShooting = true, forces firstโ€‘person while freeโ€‘aiming, and restores afterward.

๐Ÿ™Œ Hands Up (client/handsup.lua)

  • Simple handsโ€‘up behaviour with task cleanup and taser handling.

๐Ÿ’ฌ Discord Rich Presence (client/discord.lua, server/discord.lua)

  • Uses Discord Application ID and asset IDs from Config.Discord.
  • Two buttons (text + links) and live Rich Presence updates with {ID}, {NAME}, {PLAYERS_COUNT} replacement in Config.Discord.Template.

๐Ÿ—บ๏ธ Map Zones (client/zones.lua)

  • Adds localized zone/region/territory names; credit to Viyu88 (see file header).

๐Ÿ”“ Unlock Doors (client/unlockdoors.lua)

  • Unlocks a curated set of shop/clinic doors by hash at resource start.

๐Ÿ’ง Near Water & Water Pump (client/nearwater.lua, client/waterpump.lua)

  • Wash/drink prompts near natural water sources with RSGCore.Shared.Keybinds prompts.
  • Water pump interactions via ox_target; fills canteen items (checks canteen0), plays progress bar and animation.

๐Ÿ‘† Pointing (client/pointing.lua)

  • Enables RDR2 pointing with proper task toggles.

๐Ÿ”ง Small Fixes (client/smallfixes.lua)

  • Wagon driver seat handling and minor QoL fixes.

๐Ÿง  Density (client/density.lua)

  • Control peds/traffic/animal density using natives.

๐Ÿง Stop Auto Shuffle (config.lua)

  • Option to stop auto-shuffle to driver seat for wagons (Config.StopAutoShuffle = true).

๐Ÿ”ซ Weapon Check (client/weaponcheck.lua)

  • Removes weapons from ped slots on event rsg-core:client:RemoveWeaponFromTab, integrates with rsg-weapons and unequips if needed.

๐ŸŒฉ๏ธ Storm & Xmas (server/storm.lua, server/xmas.lua)

  • Storm: reacts to txAdmin:events:announcement to trigger thunderstorm prints and optional weather sync.
  • Xmas: toggles Xmas weather with weathersync (if Config.EnableXmas = true).

๐Ÿ“ Logs (server/logs.lua)

  • Webhookโ€‘based logging (configure Webhooks table) with fallbacks to default channel.

๐Ÿ“œ Example Config Highlights

Config.Debug = false
Config.FirstPersonShooting = false
Config.EnableXmas = false
Config.PauseReadBook = false
Config.StopAutoShuffle = true

Config.EagleEye = {
  everyone = { enabled = true },
  vallaw = { enabled = false },
  rholaw = { enabled = false }
}

Config.Discord = {
  DiscordAppID = 12345678910111213,
  AppBigAssetID = 'big_img.png!',
  AppBigAssetText = 'big text img!',
  AppSmallAssetID = 'small_img.png!',
  AppSmallAssetText = 'small text img!',
  FirstButtonPlaceholder = 'Discord',
  FirstButtonLink = 'https://discord.gg/yourserver',
  SecondButtonPlaceholder = 'Website',
  SecondButtonLink = 'https://example.com',
  UpdateEvery = 15000,
  Template = '{NAME} (ID: {ID}) | {PLAYERS_COUNT} online'
}

-- Water areas and pumps are configured in config.lua and client files

๐Ÿ“‚ Installation

  1. Place rsg-essentials inside your resources/[rsg] folder.
  2. Ensure rsg-core, ox_lib, ox_target, and any optional dependencies you use are installed.
  3. Configure config.lua (Discord, Eagle Eye, Xmas, etc.).
  4. Add to your server.cfg:
    ensure ox_lib
    ensure rsg-core
    ensure ox_target
    ensure rsg-essentials
  5. Restart your server.

๐ŸŒ Locales

Provided in locales/: en, fr, es, pt-br.
lib.locale() is used across client/server modules.


๐Ÿ’Ž Credits

  • Map Zones data credit to Viyu88 (see client/zones.lua).
  • RSG / Rexshack-RedM and community contributors.
  • License: GPLโ€‘3.0.

About

rsg-essentials for RSG RedM Framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 22

Languages