Docs
Rarx Crews cover

Rarx Crews

Rarx Crews

Comprehensive crew management system for FiveM

  • Qbox
  • QBCore
  • ESX
  • rarx_crews

Rarx Crews Preview

Overview#

RARX Crews is a comprehensive crew management system for FiveM servers offering creation, management, racing, contracts, and ranking features with a Vue.js interface.

Requirements#

  • FiveM (current version preferred)
  • oxmysql
  • ox_lib (mandatory)
  • QB-Core, QBX-Core, ESX Legacy, or ESX Final framework

Supported Inventory Systems#

  • qb-inventory
  • qs-inventory
  • ox_inventory
  • rarx_inventory
  • origen_inventory
  • codem-inventory
  • core_inventory

Features#

Boosting Contracts

Variable difficulty and reward structures for vehicle theft contracts

Racing System

Track creation and pilot metrics for illegal racing

Leaderboards

Competitive leaderboards with customizable ranking tiers

Modular Navigation

Individual section triggers for modular navigation

Additional Features#

  • Item-based access restrictions - Control who can access the system
  • Responsive animated UI - Modern Vue.js interface
  • Multi-framework support - Works with all major FiveM frameworks

Installation#

Configuration Files#

Main Settings (config/main.lua)#

Lua
Config = {}
Config.Debug = false
Config.Language = 'en'
Config.AdminGroups = {'admin', 'god'}

Framework Settings (config/framework.lua)#

Lua
Config.Framework = 'qb-core' -- qb-core, qbx_core, or esx
Config.BankAccount = 'bank'

Items Configuration (config/items.lua)#

Lua
Config.Items = {
    boosting_cad = 'boosting_cad',
    racing_cad = 'racing_cad',
    crews_cad = 'crews_cad',
    locator_remover = 'locator_remover'
}

Required Items#

Item Description
boosting_cad Access to vehicle theft contracts
racing_cad Enables illegal racing participation
crews_cad Main system interface device
locator_remover Removes vehicle tracking devices

Item Registration#

Add to your shared items Lua file:

Lua
['boosting_cad'] = {['name'] = 'boosting_cad', ['label'] = 'Boosting CAD', ['weight'] = 100, ['type'] = 'item', ['image'] = 'boosting_cad.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['description'] = 'Access to boosting contracts'},
['racing_cad'] = {['name'] = 'racing_cad', ['label'] = 'Racing CAD', ['weight'] = 100, ['type'] = 'item', ['image'] = 'racing_cad.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['description'] = 'Access to illegal racing'},
['crews_cad'] = {['name'] = 'crews_cad', ['label'] = 'Crews CAD', ['weight'] = 100, ['type'] = 'item', ['image'] = 'crews_cad.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['description'] = 'Crews system interface'},
['locator_remover'] = {['name'] = 'locator_remover', ['label'] = 'Anti-Locator', ['weight'] = 100, ['type'] = 'item', ['image'] = 'locator_remover.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['description'] = 'Removes vehicle trackers'},
SQL
INSERT INTO `items` (`name`, `label`, `weight`) VALUES
('boosting_cad', 'Boosting CAD', 1),
('racing_cad', 'Racing CAD', 1),
('crews_cad', 'Crews CAD', 1),
('locator_remover', 'Anti-Locator', 1);
Lua
['boosting_cad'] = {
    label = 'Boosting CAD',
    weight = 100,
    stack = false,
    close = true,
    description = 'Access to boosting contracts'
},

Database Tables#

The script automatically creates these tables:

Table Purpose
rarx_crews Player data (identifier, crew name, XP, preferences)
rarx_crews_contracts Contract specs (vehicle, guards, difficulty, rewards)
rarx_crews_tracks Racing tracks (checkpoints, distance, creator info)

Integrations & Exports#

Client-Side Events#

Lua
TriggerEvent('rarx_crews:client:OpenBoosting')
TriggerEvent('rarx_crews:client:OpenRaces')
TriggerEvent('rarx_crews:client:OpenRanking')
TriggerEvent('rarx_crews:client:OpenContracts')
TriggerEvent('rarx_crews:client:OpenMainMenu')

Client-Side Exports#

Lua
exports['rarx_crews']:OpenBoosting()
exports['rarx_crews']:OpenRaces()
exports['rarx_crews']:OpenRanking()
exports['rarx_crews']:OpenContracts()
exports['rarx_crews']:OpenMainMenu()

-- Check access
local hasAccess = exports['rarx_crews']:HasBoostingAccess() -- Returns: boolean

Integration Examples#

Item Handler (QB-Core):

Lua
QBCore.Functions.CreateUseableItem('boosting_cad', function(source)
    TriggerClientEvent('rarx_crews:client:OpenBoosting', source)
end)

Command Example:

Lua
RegisterCommand('boosting', function(source)
    TriggerClientEvent('rarx_crews:client:OpenBoosting', source)
end, false)

Restricted Navigation#

Lua
exports['rarx_crews']:ToggleTablet('boosting') -- Only show boosting section
exports['rarx_crews']:ToggleTablet('racing')   -- Only show racing section

Security Features#