[ESX/QB/QBOX/ND] Life Selector

Life Selector - Character Path Selection System

A dynamic character path selection interface for FiveM servers

Overview

Life Selector provides an immersive character path selection experience with cutscenes, custom spawn locations, and starter items. Players can choose different life paths that determine their initial gameplay experience.

Preview Image

Features

  • Sleek and responsive UI for path selection
  • Configurable cutscene sequences for each path
  • Custom spawn locations per path
  • Starter item distribution system
  • Debug commands for easy testing
  • Fully configurable paths with custom images, mentors, and descriptions

Usage

  1. Install the resource in your server
  2. Configure your paths in config.lua
  3. Trigger the interface using:
    • Export: exports['external_lifeselector']:showLifeSelector()
    • Command: /lifeselector (if debug enabled)

Configuration

Easily configure new paths in the config.lua file:

Paths = {
    racing = {
        id = "racing",
        title = "Street Racing Elite",
        description = "Join the high-stakes world of illegal street racing.",
        mentor = "Hao",
        image = "https://your-image-url.jpg", 
        scenario = "Hao has noticed your driving skills...",
        spawnLocation = vector4(782.93, -1867.95, 29.29, 78.92),
        cutscene = {
            name = "tun_meet_int",
            duration = 30000,
            weather = "CLEAR",
            coords = vector3(-2201.717, 1132.0045, -23.26399),
            time = {hour = 21, minute = 0},
        },
        items = {
            {name = 'radio', label = 'Phone', amount = 1},
            {name = 'repair_kit', label = 'Repair Kit', amount = 1}
        }
    },
}

Requirements

  • ox_inventory

GitHub Repository

Support

Need help? Discord: kyle337

Code is accessible	Yes
Subscription-based	No
Lines (approximately)	~580
Requirements & dependencies	OneSync, ox_inventory
Support	Yes
4 Likes

I’m gonna keep an eye on this since you mentioned it’s a work in progress. Love the idea!

2 Likes

Life Selector v1.0.1 Changelog

Framework Support

  • Added comprehensive framework bridge system with support for (:construction: Only ESX tested):
    • :white_check_mark: ESX
    • :construction: QB-Core (Not Tested)
    • :construction: QBox Core (Not Tested)
    • :construction: ND Core (Not Tested)
    • Automatic framework detection and initialization

Inventory Systems

  • Added support for multiple inventory systems (:construction: Only ox_inventory tested):
    • :white_check_mark: ox_inventory
    • :construction: qb-inventory (Not Tested)
    • :construction: qs-inventory (Not Tested)
    • Added metadata support for items
    • Automatic inventory detection

Item System Enhancements

  • Added flexible item configuration:
    items = {
        --  without metadata
        {
            name = 'radio', 
            label = 'Phone', 
            amount = 1
        },
        -- with metadata
        {
            name = 'armour', 
            label = 'Repair Kit', 
            amount = 1,
            metadata = {
                description = "Professional Race Repair Kit",
                durability = 100,
                type = "racing_kit"
            }
        }
    }
    

Bridge System

  • Created unified bridge.lua for framework operations
  • Added conditional metadata handling
  • Added framework-specific job handling
  • Added inventory system integration
  • Added helper functions for framework operations

Server-Side Enhancements

  • Improved error handling and logging
  • Added framework and inventory detection messages
  • Streamlined item giving and job setting through bridge

Configuration

  • Added job configuration options
  • Added item optional metadata

Dependencies

Required:

  • One of: ESX (:white_check_mark: Tested), QB-Core (:construction:), QBox Core (:construction:), or ND Core (:construction:)
  • One of: ox_inventory (:white_check_mark: Tested), qb-inventory (:construction:), or qs-inventory (:construction:)

Legend:

  • :white_check_mark: Tested and Working
  • :construction: Implemented but Not Tested
1 Like