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)
Config = {}
Config . Debug = false
Config . Language = 'en'
Config . AdminGroups = { 'admin' , 'god' }
Framework Settings (config/framework.lua)
Config . Framework = 'qb-core' -- qb-core, qbx_core, or esx
Config . BankAccount = 'bank'
Items Configuration (config/items.lua)
Config . Items = {
boosting_cad = 'boosting_cad' ,
racing_cad = 'racing_cad' ,
crews_cad = 'crews_cad' ,
locator_remover = 'locator_remover'
}
Required Items
Item Description boosting_cadAccess to vehicle theft contracts racing_cadEnables illegal racing participation crews_cadMain system interface device locator_removerRemoves vehicle tracking devices
Item Registration
Add to your shared items Lua file: [ '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' },
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 );
[ '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_crewsPlayer data (identifier, crew name, XP, preferences) rarx_crews_contractsContract specs (vehicle, guards, difficulty, rewards) rarx_crews_tracksRacing tracks (checkpoints, distance, creator info)
Integrations & Exports
Client-Side Events
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
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):
QBCore . Functions . CreateUseableItem ( 'boosting_cad' , function ( source )
TriggerClientEvent ( 'rarx_crews:client:OpenBoosting' , source )
end )
Command Example:
RegisterCommand ( 'boosting' , function ( source )
TriggerClientEvent ( 'rarx_crews:client:OpenBoosting' , source )
end , false )
Restricted Navigation
exports [ 'rarx_crews' ]: ToggleTablet ( 'boosting' ) -- Only show boosting section
exports [ 'rarx_crews' ]: ToggleTablet ( 'racing' ) -- Only show racing section
Security Features
Server-enforced access controls