Spawn/respawn flow for RedM servers using RSG Core.
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.
- rsg-core 🤠
- ox_lib ⚙️ (locales & UI helpers)
- rsg-appearance 💅 (apply saved skin on spawn)
- rsg-weapons 🔫 (optional auto dual‑wield)
- weathersync 🌦️ (optional, toggled on existing player flow)
Locales: locales/en.json, fr.json, el.json (loaded via lib.locale()).
Config: config.lua for spawn location, tips, and auto dual‑wield.
- 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:OnPlayerLoadedRSGCore: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.
- Applies saved skin with
- 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.AutoDualWield = true
Config.SpawnLocation = { coords = vector4(-169.47, 629.38, 114.03, 236.72) } -- valentine station- Place
rsg-spawninside yourresources/[rsg]folder. - Ensure rsg-core, ox_lib, rsg-appearance, and rsg-weapons (optional) are installed.
- Configure
config.lua(spawn point, tips, dual‑wield). - Add to your
server.cfg:ensure ox_lib ensure rsg-core ensure rsg-appearance ensure rsg-spawn
- Restart your server.
Included languages: en, fr, el.
Use lib.locale() to add more via locales/*.json.
- RSG / Rexshack-RedM and contributors
- Community testers and translators
- License: GPL‑3.0