Skip to content

Rexshack-RedM/rsg-spawn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rsg_framework

🌅 rsg-spawn

Spawn/respawn flow for RedM servers using RSG Core.

Platform License

Simple, fast, and polished spawn pipeline for both new and existing players.
Displays localized loading info, applies saved appearance, places the player at a configured spawn, and triggers RSGCore lifecycle events.


🛠️ Dependencies

Locales: locales/en.json, fr.json, el.json (loaded via lib.locale()).
Config: config.lua for spawn location, tips, and auto dual‑wield.


✨ Features

🧭 Two Spawn Flows

  • Existing Player
    • Fades screen, shows Citizen ID and localized loading message (+ random tip).
    • Restores last known position and heading from PlayerData.position.
    • Optional Auto Dual‑Wield via rsg-weapons (configurable).
    • Triggers:
      • RSGCore:Server:OnPlayerLoaded
      • RSGCore:Client:OnPlayerLoaded
  • New Player
    • Applies saved skin with exports['rsg-appearance']:ApplySkin().
    • Teleports to Config.SpawnLocation (default: Valentine Station).
    • Executes /revive, fades in, and triggers RSGCore load events.

📝 Random Tips

  • Rotate tips on the loading string using Config.RandomTips:
Config.RandomTips = {
  'TIP : use [LALT] to targert',
  'TIP : use [H] to call your horse',
  'TIP : use [I] to open your inventory',
}

⚙️ Config

Config.AutoDualWield = true

Config.SpawnLocation = { coords = vector4(-169.47, 629.38, 114.03, 236.72) } -- valentine station

📂 Installation

  1. Place rsg-spawn inside your resources/[rsg] folder.
  2. Ensure rsg-core, ox_lib, rsg-appearance, and rsg-weapons (optional) are installed.
  3. Configure config.lua (spawn point, tips, dual‑wield).
  4. Add to your server.cfg:
    ensure ox_lib
    ensure rsg-core
    ensure rsg-appearance
    ensure rsg-spawn
  5. Restart your server.

🌍 Locales

Included languages: en, fr, el.
Use lib.locale() to add more via locales/*.json.


💎 Credits

  • RSG / Rexshack-RedM and contributors
  • Community testers and translators
  • License: GPL‑3.0

Releases

No releases published

Packages

No packages published

Contributors 7

Languages