# CFX Asset Escrow
Source: https://docs.trase.dev/escrow
All of our scripts come with options to purchase "escrowed", what this means is that the source code is not open, but there is also an option to purchase unlocked.
We are using new CFX protection system for our resources. That means you will find your resources after the payment on the keymaster website.
## Where?
You can find your resources on [keymaster](https://keymaster.fivem.net/asset-grants). Keep in mind it may take a minute to get added to your keymaster.
If you cannot find your resources, make sure you are signed into the same FiveM account you signed in with when purchasing the script off our site.
## Error: syntax error near `'<\1>'`
There is 2 reasons this may be happening:
1. This error happens when you are using outdated server artifacts before CFX released there Escrow Asset Protection system.
* To fix it simply just upgrade to the latest server [artifacts](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/).
2. You are using filezilla which is breaking the structure of the script.
* To fix simply just use WinSCP or upload directly instead.
# Configuration Guide
Source: https://docs.trase.dev/freeresources/antimoney/config-guide
This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via [discord](https://discord.gg/trase)!
## Configuration Guide
Currently only supports ESX, QBCore will be available soon.
This is where you will configure the amount the each specific account is allowed to have. Currently the only accounts are: bank, money, black\_money. The default cap is set to \$5,000,000.
```lua theme={null}
cfg.max = { -- (type: table)
['bank'] = 5000000, -- (type: integer)
['money'] = 5000000, -- (type: integer)
['black_money'] = 5000000 -- (type: integer)
}
```
The administration groups that will not be checked, and that are whitelisted to have as much money they wish. (The check uses the xPlayer.getGroup() so only support ESX groups) \[Currently ESX Only supports 3 administrative groups. (user, mod, admin)]
```lua theme={null}
cfg.whitelisted_groups = { 'admin' } -- (type: table)
```
##
Will always log to discord as long as the cfg.webhook is a valid webhook.
The flag is the option that will happen when the player is caught having the capped amount. 3 Types are allowed:
1. **Kick**
* Kicks & Wipes the players account money.
2. **Wipe**
* Only wipes the account that has the money.
3. **Log**
* Will only send a discord log and will not wipe or kick the player.
```lua theme={null}
cfg.flag = 'kick' -- (type: string)
```
The amount of time (in seconds) that the script will check all the players for there money.
```lua theme={null}
cfg.checkTime = 15 -- (type: integer)
```
A valid discord webhook where logs will be sent when a player has to much money in a specific account.
```lua theme={null}
cfg.webhook = '' -- (type: string)
```
# Getting Started
Source: https://docs.trase.dev/freeresources/antimoney/getting-started
A resource made to help combat modders from getting to much money in your server.
For the best server protection check out [Venom AC](https://discord.gg/venomac)!
Currently only supports ESX, QBCore will be available soon.
This is not the best solution to modders exploting money, the best solution would always find the weak and exploited scripts and patch them to prevent modded money. This resource is meant for a "fail-safe" so if any resource is exploited at any given time, the modder will still be flagged if they get to much money.
## Getting Started
### Installation Guide
1. Download the most up to date resource from github.
2. Drag the "trase\_anitmoney" into your resources. `(can be renammed)`
3. Open the "config.lua" files then follow the configuration guide.
4. Add "ensure trase\_anitmoney" to your server.cfg.
5. Make sure everything works as expected, for any support contact us via discord.
# Configuration Guide
Source: https://docs.trase.dev/freeresources/discord/config-guide
This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via [discord](https://discord.gg/trase)!
### Configuration Guide
If you d on't know how to get your Bot Token or Guild ID, look it up on youtube, there are countless tutorials!
You have to create a new discord bot token, this can be created [here](https://discord.com/developers/applications). It needs to have administrator permissions, this is so it can pull players discord roles. `script is open source`
```lua theme={null}
Config.Token = '' -- (type: string)
```
Discord Guild Id, to get this enable discord developer mode and right click your servers discord icon, and press "Copy ID". For a more in depth tutorial follow [this](https://poshbot.readthedocs.io/en/latest/guides/backends/setup-discord-backend/#:~:text=Find%20your%20Guild%20ID%20\(Server%20ID\),-You%20will%20need\&text=Go%20to%20Appearance%20and%20enable,can%20disable%20Developer%20Mode%20now.).
```lua config.lua theme={null}
Config.Guild = '' -- (type: string)
```
# Getting Started
Source: https://docs.trase.dev/freeresources/discord/getting-started
A lightweight and optimized script for FiveM that integrates with the Discord API. It is designed to be simple to use and easy to configure.
## Getting Started
### Installation Guide
1. Download the most up to date resource from github.
2. Drag the "trase\_discord" into your resources. `(not recommended to rename)`
3. Open the "config.lua" files then follow the configuration guide.
4. Add "ensure trase\_discord" to your server.cfg.
5. Make sure everything works as expected, for any support contact us via discord.
# Get Avatar
Source: https://docs.trase.dev/freeresources/discord/usage/getAvatar
This function takes a single parameter 'target', which is the ID of the player that the Discord user data should be retrieved. It returns a string that represents the URL of the user's Discord avatar. **If the user is not in the discord, or there data could not be loaded, it will return false for all functions**.
```lua theme={null}
exports.trase_discord:getAvatar(serverId)
```
* serverId: `integer`
* The server ID of the player you want to retrieve the discord info for.
Returns: `false` or `string`
## Examples
```lua theme={null}
RegisterCommand('getAvatar', function(src)
local avatar = exports.trase_discord:getAvatar(src)
if (not avatar) then
-- Player was not in the discord, no avatar found
return
end
print(avatar)
end)
```
# Get Roles
Source: https://docs.trase.dev/freeresources/discord/usage/getRoles
This function takes a single parameter 'target', which is the ID of the player that the Discord user data should be retrieved. It returns a table containing all roles found on the user. **If the user is not in the discord, or there data could not be loaded, it will return false for all functions**.
```lua theme={null}
exports.trase_discord:getRoles(serverId)
```
* serverId: `integer`
* The server ID of the player you want to retrieve the discord info for.
Returns: `false` or `table`
## Examples
```lua theme={null}
RegisterCommand('getRoles', function(src)
local roles = exports.trase_discord:getRoles(src)
if (not roles) then
-- Player was not in the discord, no user found
return
end
print(json.encode(roles, { indent = true }))
end)
```
# Get Roles
Source: https://docs.trase.dev/freeresources/discord/usage/getUser
This function takes a single parameter 'target', which is the ID of the player that the Discord user data should be retrieved. It returns a table that contains Discord user data, including the user's name, discriminator, and avatar. **If the user is not in the discord, or there data could not be loaded, it will return false for all functions**.
```lua theme={null}
exports.trase_discord:getUser(serverId)
```
* serverId: `integer`
* The server ID of the player you want to retrieve the discord info for.
Returns: `false` or `table`
## Examples
```lua theme={null}
RegisterCommand('getDiscordUser', function(src)
local user = exports.trase_discord:getUser(src)
if (not user) then
-- Player was not in the discord, no user found
return
end
print(json.encode(user, { indent = true }))
end)
```
# Get Username
Source: https://docs.trase.dev/freeresources/discord/usage/getUsername
This function takes a single parameter 'target', which is the ID of the player that the Discord user data should be retrieved.It returns a string that represents the user's Discord username. **If the user is not in the discord, or there data could not be loaded, it will return false for all functions**.
```lua theme={null}
exports.trase_discord:getUsername(serverId)
```
* serverId: `integer`
* The server ID of the player you want to retrieve the discord info for.
Returns: `false` or `string`
## Examples
```lua theme={null}
RegisterCommand('getUsername', function(src)
local username = exports.trase_discord:getUsername(src)
if (not username) then
-- Player was not in the discord, no username found
return
end
print(username)
end)
```
# Has Role
Source: https://docs.trase.dev/freeresources/discord/usage/hasRole
This function takes three parameters: 'target', which is the ID of the player who you want to get the role information that should be checked, 'role', which is either a single integer or a table of integers representing the role(s) to be checked, and 'stack', which is an optional boolean value that determines whether the function should return all found roles in a table or just the first found role. It returns either a boolean value indicating whether the player has the specified role or a table of all roles that were found, depending on the value of 'stack'.
```lua theme={null}
exports.trase_discord:hasRole(serverId, role or roles, stack)
```
* serverId: `integer`
* The server ID of the player you want to retrieve the discord info for.
* role: `integer` or `table`
* This function has a built in option where you can check for multiple discord roles in a table or just one.
* **Use role id's to check**
* stack: `boolean`
* If enabled and the roles is a table, then it will return a table of all found roles that were found in the table.
Returns: `boolean` or `table`
## Examples
### Check one role
```lua theme={null}
RegisterCommand('checkrole', function(src)
local roleID = 1039982382268305472
local role = exports.trase_discord:hasRole(src, roleID)
if (not role) then
-- No roles found
return
end
print(('Role: %s was found.'):format(roleID))
end)
```
### Check for multiple roles
```lua theme={null}
RegisterCommand('checkrole', function(src)
local tableRoles = {
[1040852709726748732] = 'Owner',
[1039982382268305472] = 'Developer',
[1039960980467240972] = 'Admin'
}
local role, roleFound = exports.trase_discord:hasRole(src, tableRoles)
if (not role) then
-- No roles found
return
end
print(roleFound)
print(('Role: %s was found.'):format(tableRoles[roleFound]))
end)
```
### Check for multiple roles, stack all roles found
```lua theme={null}
RegisterCommand('stackroles', function(src)
local tableRoles = {
[1040852709726748732] = 'Owner',
[1039982382268305472] = 'Developer',
[1039960980467240972] = 'Admin'
}
local roles = exports.trase_discord:hasRole(src, tableRoles, true)
if (not roles) then
-- No roles found
return
end
print(json.encode(roles, { indent = true }))
end)
```
# Configuration Guide
Source: https://docs.trase.dev/freeresources/garage/config-guide
This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via [discord](https://discord.gg/trase)!
# Trase Garage - Configuration Guide
Complete configuration reference for customizing your garage system to fit your server's needs.
## Overview
The Trase Garage system is highly configurable, allowing you to customize everything from garage locations to visual elements. All configuration is done through the `config.lua` file.
## Basic Configuration
### Framework Settings
```lua theme={null}
Config.Framework = 'auto' -- Options: 'auto', 'esx', 'qb', 'qbx'
```
**Options:**
* `'auto'` - Automatically detect the framework (recommended)
* `'esx'` - Force ESX Legacy framework
* `'qb'` - Force QBCore framework
* `'qbx'` - Force QBX framework
### Visual Settings
```lua theme={null}
Config.DrawDistance = 25.0 -- Distance to draw markers and show interactions
```
**Configuration:**
* **Range:** `10.0` - `50.0` (recommended: `25.0`)
* **Lower values** = Better performance, shorter interaction range
* **Higher values** = Longer interaction range, more resource usage
## Garage Configuration
### Adding Garage Locations
```lua theme={null}
Config.Garages = {
['Legion'] = {
Enter = vec3(215.1587, -809.5308, 30.7485),
Browse = vec4(230.8425, -795.6925, 30.5864, 161.3799),
Store = vec3(214.6054, -792.4926, 30.8434)
},
['PillboxHill'] = {
Enter = vec3(-330.01, -780.33, 33.96),
Browse = vec4(-334.73, -746.32, 33.97, 118.29),
Store = vec3(-336.31, -756.89, 33.97)
}
}
```
### Garage Location Parameters
#### Enter (Required)
```lua theme={null}
Enter = vec3(x, y, z)
```
* **Purpose:** Garage entrance marker location
* **Interaction:** Players walk here to browse vehicles
* **Marker:** Blue cylinder marker appears here
#### Browse (Required)
```lua theme={null}
Browse = vec4(x, y, z, heading)
```
* **Purpose:** Vehicle preview and spawn location
* **Interaction:** Where vehicles appear during browsing
* **Heading:** Direction the vehicle faces when spawned
* **Note:** Player is teleported here during browsing
#### Store (Optional)
```lua theme={null}
Store = vec3(x, y, z)
```
* **Purpose:** Vehicle storage marker location
* **Interaction:** Players drive here to store vehicles
* **Marker:** Blue cylinder marker appears here
* **Note:** If not specified, vehicles can only be retrieved
### Finding Coordinates
Use these methods to get coordinates for your garage locations:
#### Method 1: In-Game Commands
```lua theme={null}
-- Add to your server for testing (remove after setup)
RegisterCommand('coords', function(source)
local ped = GetPlayerPed(source)
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
print(string.format("vec3(%.2f, %.2f, %.2f)", coords.x, coords.y, coords.z))
print(string.format("vec4(%.2f, %.2f, %.2f, %.2f)", coords.x, coords.y, coords.z, heading))
end)
```
#### Method 2: Online Coordinate Tools
* Use FiveM coordinate websites
* Stand at desired location and copy coordinates
* Adjust Z-coordinate as needed for ground level
### Garage Naming Conventions
```lua theme={null}
Config.Garages = {
['LegionSquare'] = { ... }, -- PascalCase recommended
['PillboxHill'] = { ... }, -- No spaces or special characters
['SandyShores'] = { ... }, -- Keep names descriptive
['PaletoBay'] = { ... } -- Avoid numbers/symbols
}
```
## Impound System Configuration
### Basic Impound Settings
```lua theme={null}
Config.Impound = {
Enabled = true, -- Enable/disable entire impound system
Price = 2500, -- Cost to retrieve impounded vehicles
Locations = {
['Hayes Auto'] = {
Enter = vec3(484.0731, -1312.2666, 29.2153),
Browse = vec4(490.5146, -1313.6351, 29.2581, 304.4655)
}
}
}
```
### Impound Parameters
#### Enabled
```lua theme={null}
Enabled = true -- or false
```
* `true` - Impound system is active
* `false` - Impound system is disabled completely
#### Price
```lua theme={null}
Price = 2500 -- Amount in server currency
```
* **Range:** `0` - `999999`
* **Currency:** Based on your framework (ESX: money, QB: cash/bank)
* **Set to 0** for free impound retrieval
#### Payment Priority
1. **Cash first** - Attempts to pay with cash
2. **Bank second** - Uses bank money for remaining amount
3. **Insufficient funds** - Shows error if player can't afford
### Adding Impound Locations
```lua theme={null}
Config.Impound = {
Enabled = true,
Price = 2500,
Locations = {
['Hayes Auto'] = {
Enter = vec3(484.0731, -1312.2666, 29.2153),
Browse = vec4(490.5146, -1313.6351, 29.2581, 304.4655)
},
['Downtown Impound'] = {
Enter = vec3(-234.73, -1184.11, 23.04),
Browse = vec4(-225.28, -1174.82, 23.04, 270.0)
}
}
}
```
**Note:** Impound locations only need `Enter` and `Browse` coordinates (no Store location).
## Blip Configuration
### Garage Blips
```lua theme={null}
Config.Blips = {
Garages = {
Enabled = true, -- Show garage blips on map
Sprite = 357, -- Blip icon sprite ID
Color = 3, -- Blip color ID
Scale = 0.7, -- Blip size (0.5 - 2.0)
Name = 'Garage' -- Blip label text
}
}
```
### Impound Blips
```lua theme={null}
Config.Blips = {
Impounds = {
Enabled = true, -- Show impound blips on map
Sprite = 524, -- Blip icon sprite ID
Color = 47, -- Blip color ID (red/orange)
Scale = 0.7, -- Blip size
Name = 'Impound' -- Blip label text
}
}
```
### Blip Customization Options
#### Sprite IDs (Common Options)
```lua theme={null}
-- Garage sprites
Sprite = 357 -- Garage icon (recommended)
Sprite = 50 -- Garage alternative
Sprite = 356 -- Car icon
-- Impound sprites
Sprite = 524 -- Impound truck (recommended)
Sprite = 68 -- Tow truck
Sprite = 446 -- Warning triangle
```
#### Color IDs (Common Options)
```lua theme={null}
-- Garage colors
Color = 3 -- Light blue (recommended)
Color = 38 -- Dark blue
Color = 11 -- Purple
-- Impound colors
Color = 47 -- Orange/red (recommended)
Color = 6 -- Red
Color = 17 -- Dark red
```
#### Scale Options
```lua theme={null}
Scale = 0.5 -- Very small
Scale = 0.7 -- Default (recommended)
Scale = 1.0 -- Normal size
Scale = 1.5 -- Large
Scale = 2.0 -- Very large
```
## Advanced Configuration
### Marker Customization
While not directly configurable in config.lua, you can modify marker appearance in the client script:
```lua theme={null}
-- In client/client.lua, look for drawMarkerAt function
local function drawMarkerAt(pos, scale)
DrawMarker(
1, -- Marker type (cylinder)
pos.x, pos.y, pos.z - 0.98, -- Position
0,0,0, -- Direction
0,0,0, -- Rotation
scale.x, scale.y, scale.z, -- Scale
0,153,255,140, -- RGBA color (blue with transparency)
false,false,2,false,nil,nil,false
)
end
```
### Interaction Distances
```lua theme={null}
-- In client/client.lua
local enterRadius = 1.6 -- Distance to interact with garage entrance
local storeEnterRadius = 3.0 -- Distance to interact with storage
```
### Marker Scales
```lua theme={null}
-- In client/client.lua
local markerScale = vec3(0.9,0.9,0.9) -- Regular garage markers
local storeMarkerScale = vec3(4.0,4.0,0.4) -- Storage markers (wider, flatter)
```
## Example Complete Configuration
```lua theme={null}
-----------------------------------------------------
---- Trase Garage Configuration File ----------------
-----------------------------------------------------
Config = {}
-- Framework Settings
Config.Framework = 'auto' -- 'auto', 'esx', 'qb', 'qbx'
Config.DrawDistance = 25.0
-- Blip Settings
Config.Blips = {
Garages = {
Enabled = true,
Sprite = 357,
Color = 3,
Scale = 0.7,
Name = 'Garage'
},
Impounds = {
Enabled = true,
Sprite = 524,
Color = 47,
Scale = 0.7,
Name = 'Impound'
}
}
-- Garage Locations
Config.Garages = {
['Legion'] = {
Enter = vec3(215.1587, -809.5308, 30.7485),
Browse = vec4(230.8425, -795.6925, 30.5864, 161.3799),
Store = vec3(214.6054, -792.4926, 30.8434)
},
['PillboxHill'] = {
Enter = vec3(-330.01, -780.33, 33.96),
Browse = vec4(-334.73, -746.32, 33.97, 118.29),
Store = vec3(-336.31, -756.89, 33.97)
},
['SandyShores'] = {
Enter = vec3(1737.59, 3710.2, 34.14),
Browse = vec4(1722.66, 3713.74, 34.21, 22.28),
Store = vec3(1713.33, 3707.88, 34.21)
}
}
-- Impound System
Config.Impound = {
Enabled = true,
Price = 2500,
Locations = {
['Hayes Auto'] = {
Enter = vec3(484.0731, -1312.2666, 29.2153),
Browse = vec4(490.5146, -1313.6351, 29.2581, 304.4655)
},
['Sandy Shores Impound'] = {
Enter = vec3(1642.81, 3806.45, 35.05),
Browse = vec4(1651.56, 3803.94, 35.37, 217.32)
}
}
}
```
## Configuration Best Practices
### Location Planning
* **Space out garages** - Avoid placing too close together
* **Consider traffic** - Place in accessible but not crowded areas
* **Test thoroughly** - Spawn vehicles to ensure adequate space
* **Mind obstacles** - Avoid lamp posts, barriers, or buildings
### Performance Optimization
* **Limit garage count** - More garages = more resource usage
* **Optimize draw distance** - Lower values improve performance
* **Strategic placement** - Focus on high-traffic areas
### Balance Considerations
* **Impound pricing** - Balance cost vs. punishment
* **Garage accessibility** - Make garages reasonably accessible
* **Storage locations** - Ensure players can safely park
## Testing Your Configuration
### Pre-Launch Checklist
1. **Verify coordinates** - All locations are accessible
2. **Test all interactions** - Store, retrieve, and browse work
3. **Check blip placement** - Blips appear correctly on map
4. **Confirm framework detection** - Check console logs
5. **Test with multiple players** - Ensure no conflicts
### Common Configuration Errors
#### Invalid Coordinates
```lua theme={null}
-- Wrong: Missing decimals
Enter = vec3(215, -809, 30)
-- Correct: Proper precision
Enter = vec3(215.1587, -809.5308, 30.7485)
```
#### Missing Required Parameters
```lua theme={null}
-- Wrong: Missing Browse location
['Garage1'] = {
Enter = vec3(215.16, -809.53, 30.75)
-- Browse is required!
}
-- Correct: All required parameters
['Garage1'] = {
Enter = vec3(215.16, -809.53, 30.75),
Browse = vec4(230.84, -795.69, 30.59, 161.38)
}
```
#### Syntax Errors
```lua theme={null}
-- Wrong: Missing commas
Config.Garages = {
['Legion'] = {
Enter = vec3(215.16, -809.53, 30.75)
Browse = vec4(230.84, -795.69, 30.59, 161.38) -- Missing comma above
}
}
-- Correct: Proper syntax
Config.Garages = {
['Legion'] = {
Enter = vec3(215.16, -809.53, 30.75),
Browse = vec4(230.84, -795.69, 30.59, 161.38)
}
}
```
## Troubleshooting Configuration Issues
### Markers Not Appearing
* Check `Config.DrawDistance` value
* Verify coordinate accuracy
* Ensure resource is properly restarted
### Blips Not Showing
* Confirm `Enabled = true` in blip configuration
* Check sprite and color IDs are valid
* Restart resource after configuration changes
### Framework Not Detected
* Verify framework resource is running
* Check console for detection messages
* Try manual framework setting
### Performance Issues
* Reduce `Config.DrawDistance`
* Limit number of garage locations
* Optimize marker update frequency
***
*For additional support with configuration, visit our Discord: [https://discord.gg/trase](https://discord.gg/trase)*
# Getting Started
Source: https://docs.trase.dev/freeresources/garage/getting-started
A free FiveM Garage System to easily store and retrieve owned vehicles.
# Trase Garage - Installation Guide
A comprehensive garage system for FiveM servers supporting ESX, QBCore, and QBX frameworks.
## Features
* **Multi-framework support** - ESX, QBCore, and QBX with automatic detection
* **Vehicle storage and retrieval** - Store and retrieve owned vehicles at garage locations
* **Interactive browsing system** - Preview vehicles before retrieving them
* **Impound system** - Vehicle impounding with configurable retrieval fees
* **Multi-language support** - English, French, and Spanish included
* **Configurable locations** - Easy setup of garage and impound locations
* **Map blips** - Optional blips for garages and impounds
* **Database integration** - MySQL support for vehicle tracking
## Requirements
### Dependencies
* **ox\_lib** - Required for UI, callbacks, and utility functions
* **mysql-async** - Required for database operations
* **Framework** - One of the following:
* ESX Legacy (es\_extended)
* QBCore (qb-core)
* QBX (qbx-core)
### Database Requirements
Your server must have the appropriate vehicle tables based on your framework:
#### ESX Framework
```sql theme={null}
-- Table: owned_vehicles
-- Required columns: owner, plate, vehicle, stored, parking
```
#### QBCore/QBX Framework
```sql theme={null}
-- Table: player_vehicles
-- Required columns: citizenid, plate, mods, state, garage
```
## Installation Steps
### 1. Download and Extract
```bash theme={null}
# Download the resource and extract to your resources folder
[trase]/
└── trase_garage/
├── fxmanifest.lua
├── config.lua
├── client/
├── server/
├── framework/
└── locales/
```
### 2. Install Dependencies
Ensure the following resources are installed and started **before** trase\_garage:
```lua theme={null}
-- In your server.cfg, make sure these are started first:
ensure oxmysql
ensure ox_lib
ensure [your_framework] -- es_extended, qb-core, or qbx-core
```
### 3. Database Setup
No additional database setup is required. The script uses your existing framework's vehicle tables.
### 4. Configuration
Please visit [Configuration Guide](/freeresources/garage/config-guide)
## Usage
### For Players
#### Storing Vehicles
1. Drive your vehicle to a garage location
2. Look for the blue storage marker
3. Press `E` when prompted to store the vehicle
4. The vehicle will be safely stored in the garage
#### Retrieving Vehicles
1. Walk to a garage entrance marker
2. Press `E` to open the garage
3. Use arrow keys (← →) to browse your stored vehicles
4. Press `Enter` to retrieve the selected vehicle
5. Press `Backspace` to cancel browsing
#### Impound System
1. Go to an impound location
2. Press `E` to view impounded vehicles
3. Browse and select the vehicle to retrieve
4. Pay the impound fee to get your vehicle back
### For Administrators
#### Adding New Garages
1. Open `config.lua`
2. Add a new entry to `Config.Garages`
3. Set the entrance, browse, and storage coordinates
4. Restart the resource
#### Setting Impound Locations
1. Configure `Config.Impound.Locations`
2. Set the retrieval price in `Config.Impound.Price`
3. Enable/disable with `Config.Impound.Enabled`
## Localization
The script supports multiple languages. To add a new language:
1. Create a new file in `locales/` (e.g., `de.json` for German)
2. Copy the structure from `en.json`
3. Translate all text strings
4. The script will automatically detect and use the locale
## Troubleshooting
### Common Issues
#### Script Not Loading
* Ensure all dependencies are installed and started first
* Check console for error messages
* Verify fxmanifest.lua is not corrupted
#### Database Errors
* Confirm your framework's vehicle table exists
* Check MySQL connection string in server.cfg
* Verify table column names match your framework
#### Vehicles Not Appearing
* Ensure vehicles are properly stored in database
* Check vehicle state/stored column values
* Verify player ownership in database
#### Framework Not Detected
```lua theme={null}
-- Manually set framework in config.lua if auto-detection fails
Config.Framework = 'esx' -- or 'qb', 'qbx'
```
### Debug Mode
Enable debug prints by checking server console for framework detection messages:
```
[Trase_Garage] [INFO]: ESX framework detected and set.
```
## Support
For additional support:
* **Discord**: [https://discord.gg/trase](https://discord.gg/trase)
* **Issues**: Check server console for error messages
* **Updates**: Visit the Discord for script updates
## Version Information
* **Script Version**: Latest
* **Compatible Frameworks**: ESX Legacy, QBCore, QBX
* **Dependencies**: ox\_lib, mysql-async
* **License**: Check license file for terms
***
*This script was created by Trase. For more scripts and updates, visit our Discord community.*
# Configuration Guide
Source: https://docs.trase.dev/freeresources/pedmenu/config-guide
This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via [discord](https://discord.gg/trase)!
### Configuration Guide
Requires [trase\_discord](https://github.com/ImTrase/trase_discord)
This is a model changer, you will need to add addon peds yourself then configure them below. You can find some nice ones [here](https://discord.gg/w3x9Vxqtfn).
For this script to work it requires my discord API resource, this is to check for discord roles.
```lua config.lua theme={null}
config.discord = { -- Required trase_discord: https://github.com/ImTrase/trase_discord
enabled = true,
role = '', -- The discord role of the donator, ensure the value is "number"
refresh = { -- A command to refresh permissions. (Used to prevent discord rate limits) [ONLY FOR DISCORD PERMS]
enabled = true, -- Enable commmand?
command = 'pedrefresh', -- The command to refresh perms
cooldown = 10 -- Seconds to wait between usage
}
}
```
This is where you will more peds to the pedmenu. (you need to stream any addon peds)
```lua config.lua theme={null}
config.peds = {
[1] = {label = 'DC', model = `a_m_m_fatlatin_01`},
[2] = {label = 'Monkey', model = `a_c_chimp`},
}
```
# Getting Started
Source: https://docs.trase.dev/freeresources/pedmenu/getting-started
A free FiveM Ped Menu to whitelist peds through a simple discord role.
## Getting Started
### Installation Guide
1. Download the most up to date resource from github.
2. Drag the "trase\_pedmenu" into your resources. `(can rename)`
3. Open the "config.lua" files then follow the configuration guide.
4. Add "ensure trase\_pedmenu" to your server.cfg.
5. Make sure everything works as expected, for any support contact us via discord.
# Introduction
Source: https://docs.trase.dev/introduction
Here you will find all the offical documentation for resource developed by the Trase.Dev development team.
If you think any of the documentation does not make since or is missing any important information, please contact us via [discord](https://discord.gg/trase) and let us know!
## Our Current Team
Currently we have a team of support and staff members, so if you have any issues, questions, or concerns then please just open a ticket
in our discord and we will help you as soon as possible!
# Common Issues
Source: https://docs.trase.dev/paidresources/dealer/common-issues
This is where you can find the most common issues and fixes with our script. (if the script is new, this may be empty and will be updated overtime)
## Issue #1: "Inventory too full"
Explanation:
This problem commonly occurs on QBCore servers and can also happen on ESX servers. It occurs when the paytype in the configuration is set to something like "markedbills," which indicates that a large item is being given as a reward. When the price is set to 2000 or when the "RandomizePay" option is turned on, the system tries to provide a significant amount of bigger bags or items as a result.
Solution:
If enabled, disable the Config.RandomizePay and decrease the sale price of all drugs.
# Configuration Guide
Source: https://docs.trase.dev/paidresources/dealer/configuration-guide
This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via [discord](https://discord.gg/trase)!
For easier to read reasons both the ranks & drug configuration have there own category.
Make sure to configure the server.lua config too, scroll down to view the configuration guide for that.
#### client & server sided config
Here is where you can decide what framework you want to use. **Note:** If you choose "custom framework" you need to setup the framework and it's functions in via "frameworks/custom.lua".
```md theme={null}
0 = ESX
1 = QBCore
2 = Custom Framework
```
```lua Config.lua theme={null}
config.framework = 0 -- (type: integer)
```
Here is where you can add/remove the commands that will start the selling process.
```lua Config.lua theme={null}
Config.SellCommands = { 'dealer', 'selldrugs', 'trap' } -- (type: table)
```
Here is where you can enable/disable the context menu where if the player has more then 1 drug available to sell then it will pop up a selection menu.
```lua Config.lua theme={null}
Config.EnableSelection = true -- (type: boolean)
```
Here is where you can decide the spawn distance that you want the ped spawning from the player.
```lua Config.lua theme={null}
Config.SpawnDistance = 50.0 -- (type: integer)
```
The time (in seconds) it takes to sell on level 1
```lua Config.lua theme={null}
Config.DefaultSellTime = 12 -- (type: integer)
```
Here is where you can enable/disable the option to only allow selling at night.
```lua Config.lua theme={null}
Config.SellOnlyNight = true -- (type: boolean)
```
Here is where you can add a list of jobs that is not allowed to sell drugs.
```lua Config.lua theme={null}
Config.BlacklistedJobs = { -- (type: table)
'police',
'ambulance'
}
```
Here is where you can add a list of blacklisted coords with a radius to prevent drug selling.
```lua Config.lua theme={null}
Config.BlacklistedLocations = { -- (type: table)
vec4(0.0, 0.0, 0.0, 25.0), -- X, Y, Z, Radius
}
```
Here is where you can enable/disable the police job, if enabled the configured job will get alerts if a client declines a drug sale.
```lua Config.lua theme={null}
Config.Police = { -- (type: table)
Enabled = true, -- (type: boolean)
Job = 'police' -- (type: string)
}
```
Here is where you can configure the notification texts of when a ped declines a sale. (it will automatically select one from this list)
```lua Config.lua theme={null}
Config.DenyStrings = {
'This stuff is shitty!',
'I want the real shit, what is this?!',
'This shit wack.',
}
```
Here is where you can change all the text/notifications (support for other languages)
```lua Config.lua theme={null}
Config.Strings = {
['NoDrugs'] = 'You have no drugs to sell!',
['MenuTitle'] = 'Select Drug Option',
['NoClientFound'] = 'No clients were found, try moving around.',
['ClientFound'] = 'Client found, they\'re approaching now.',
['ClientScared'] = 'The client got scared and ran away.',
['NoInVeh'] = 'You can\'t sell drugs while in a vehicle.',
['SoldDrug'] = 'You sold {DRUG_NAME} for ${DRUG_PRICE}.',
['RankUp'] = 'Congrats! You have sold a total of {TOTAL_DRUGSALE} drugs and ranked up to {RANK_LABEL}!',
['SellIncrease'] = 'You got a {DRUG_MULTI}% sell increase due to your rank!',
['SellIncreaseDiscord'] = 'You got a {DRUG_MULTI}% sell increase due to being a donator!',
['AlertPolice'] = 'A suspect spotted selling drugs!',
['BlacklistedJob'] = 'You are not allowed to sell drugs with this job!',
['CantSellHere'] = 'You cannot sell drugs here!',
['CurrentlyDrugRank'] = 'You are currently rank {DRUG_RANK}, and have sold a total of x{DRUG_TOTALSOLD} drugs!',
['NotNight'] = 'You can only sell drugs during night time!',
}
```
Here is where you can add/replace/remove the ped models that are spawned to come and collect the drugs.
The ped model must start with the back tick (\`) otherwise it will not work properly.
```lua config.lua theme={null}
Config.PedModels = { -- (type: table)
`a_m_m_salton_04`,
`a_m_m_salton_03`,
`a_m_m_rurmeth_01`,
`a_m_m_skidrow_01`,
`a_m_m_socenlat_01`,
`a_m_m_soucent_01`,
`a_m_m_soucent_03`,
`a_m_m_soucent_04`,
`a_m_o_acult_02`,
`a_m_o_soucent_02`,
`a_m_o_soucent_03`,
`a_m_o_tramp_01`,
`csb_tonya`,
`g_f_y_ballas_01`,
`g_f_y_families_01`,
`g_f_y_lost_01`,
`g_f_y_vagos_01`,
}
```
#### Server Sided Config
On QBCore if you set the paytype to "markedbills" then make sure to decrease the price for each drug + disable the "RandomizePay" option.
This is where you will set the specific paytype that it will give you when a drug sale is completed.
```md theme={null}
ESX Money Types: "money", "bank", "black_money"
QBCore Money Types: "cash", "markedbills"
```
```lua server.lua theme={null}
Config.PayType = 'black_money' -- (type: string)
```
If enabled, it will add a random number 1-200
```lua server.lua theme={null}
Config.RandomizePay = true -- (type: boolean)
```
This is where you can enable/disable & configure the command for players to check there dealer rank.
```lua server.lua theme={null}
Config.Command = { -- (type: table)
Enabled = true, -- (type: boolean)
Command = 'dealerrank' -- (type: string)
}
```
This is where you can enable/disable the option to use discord benifits, you can make where people with a specific discord role gets a increased sell price. **(Requires [trase\_discord](https://github.com/ImTrase/trase_discord))**
```lua server.lua theme={null}
Config.Discord = {
Enabled = false, -- Requires: https://github.com/ImTrase/trase_discord
ResourceName = 'trase_discord', -- In case you renamed the resource.
Roles = {
[1] = {
RoleID = 1094982744133619782,
SellPrice = 25 -- Sell 25% more (adds on to the rank)
}
}
}
```
# Drugs Guide
Source: https://docs.trase.dev/paidresources/dealer/drug-guide
This is where you can find the configuration guide to help you configure the drugs in your server to utilize our dealer system.
Make sure to follow the configuration guide for the paytype explanation.
```lua server.lua theme={null}
Config.Drugs = {
[1] = { -- Lets add our coke drug
Label = 'Coke', -- The label/name of the drug
Item = 'coke_bag', -- The unique spawn name for the item (if you are not sure try giving yourself the item via administrator commands)
Price = 2000, -- The amount of money it will give you. (you can configure the pay type)
RequiredAmount = 1, -- The minimum amount of drugs required to sell
DenyChance = 0 -- The chance that the ped will deny the sale and alert the police. (25 = 25% chance to deny)
},
[2] = { -- Lets add one more, our meth drug
Label = 'Meth', -- The label/name of the drug
Item = 'meth_bag', -- The unique spawn name for the item (if you are not sure try giving yourself the item via administrator commands)
Price = 2000, -- The amount of money it will give you. (you can configure the pay type)
RequiredAmount = 1, -- The minimum amount of drugs required to sell
DenyChance = 0 -- The chance that the ped will deny the sale and alert the police. (25 = 25% chance to deny)
},
}
```
# Getting Started
Source: https://docs.trase.dev/paidresources/dealer/getting-started
An advanced drug dealer script for FiveM. It allows players to sell drugs or other illegal items. Create ranks with exclusive perks, enhancing the gameplay experience. Connect whitelisted discord roles to give supporters exclusive modifications such as increased sell percentages. Our script support both ESX and QBCore, our script is also very easy to install.
## Getting Started
### Installation Guide
1. Download the most up to date resource from keymaster.
2. Drag the "trase\_dealer" into your resources. `(You can rename the resource)`
3. Open the "config.lua" & "server.lua" files then follow the configuration guide.
4. Add "ensure trase\_dealer" to your server.cfg.
5. Make sure everything works as expected, for any support contact us via discord.
# Ranks Guide
Source: https://docs.trase.dev/paidresources/dealer/rank-guide
This is where you can configure the ranks, it comes default with 4 configured ranks, but you can remove or add as many as you want.
## Default Rank Configuration
```lua config.lua theme={null}
Config.Ranks = {
[1] = {
RankLabel = 'Rank: 2',
SellRequirement = 100,
Modifiers = {
SellTime = 10, -- The time (in seconds) it takes to sell the drug on the phone with the ped
SellPrice = 10 -- Sell 10% more
}
},
[2] = {
RankLabel = 'Rank: 3',
SellRequirement = 500,
Modifiers = {
SellTime = 8, -- The time (in seconds) it takes to sell the drug on the phone with the ped
SellPrice = 15 -- Sell 15% more
}
},
[3] = {
RankLabel = 'Rank: 4',
SellRequirement = 750,
Modifiers = {
SellTime = 6, -- The time (in seconds) it takes to sell the drug on the phone with the ped
SellPrice = 20 -- Sell 20% more
}
},
[4] = {
RankLabel = 'Rank: 5',
SellRequirement = 1000,
Modifiers = {
SellTime = 4, -- The time (in seconds) it takes to sell the drug on the phone with the ped
SellPrice = 25 -- Sell 25% more
}
},
}
```
#### Now lets break it all down.
```lua examples theme={null}
RankLabel -- The label that the will be displayed when the player checks there dealer rank.
SellRequirement -- The amount of drugs they are required to sell to reach the rank.
Modifiers -- This is where you can give rewards depending on the players rank.
Modifiers.SellTime -- The time (in seconds) it takes to sell the drug.
Modifiers.SellPrice -- The % increase the drug sells for.
```
For any further help or questions you can contact us via [discord](https://discord.gg/trase)!
# Common Issues
Source: https://docs.trase.dev/paidresources/donation/common-issues
This is where you can find the most common issues and fixes with our script. (if the script is new, this may be empty and will be updated overtime)
## Issue #1: "Someone just claimed package X, but that package is not configured in the config"
Explanation:
When someone attempts to claim an unconfigured package through the command, the console will print "Someone just claimed package (PACKAGE NAME), but that package is not configured in the config". This message signifies that the script doesn't recognize the package because it hasn't been correctly set up in the script's configuration.
Solution:
Ensure that the package is properly configured in the script's config. (you can follow the configuration guide for a more detailed setup guide)
# Configuration Guide
Source: https://docs.trase.dev/paidresources/donation/configuration-guide
This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via [discord](https://discord.gg/trase)!
### Configuration Guide
Package Configuration can be found inside the `Package Guide` category.
This will print debug information to console, will help later for assistance if ever needed.
```lua Config.lua theme={null}
config.debug = false -- (type: boolean)
```
The command that needs to be typed in order to claim a package.
```lua Config.lua theme={null}
config.command = 'tebexclaim' -- (type: string)
```
This is the most **crucial** part of the configuration process, if you do this step incorrectly the script will NOT work. To learn how to get your API Key visit [here](https://docs.tebex.io/creators/faq).
```lua Config.lua theme={null}
config.api_key = 'secret_key_here' -- (type: string)
```
Here is where you can decide what framework you want to use. **Note:** If you choose "custom framework" you need to setup the framework and it's functions in via "frameworks/custom.lua".
```md theme={null}
0 = ESX
1 = QBCore
2 = Custom Framework
```
```lua Config.lua theme={null}
config.framework = 0 -- (type: integer)
```
Print in console when a package is claimed (error prints will print regardless of this option)
```lua Config.lua theme={null}
config.console_prints = true -- (type: boolean)
```
We currently only added support for "okokNotify", if you want to use your custom notification system you can change it via "client/functions.lua".
```lua Config.lua theme={null}
config.notifications = 0 -- (type: integer)
```
If enabled, it will send logs to a specified webhook.
```lua Config.lua theme={null}
config.discord = {...} -- (type: table)
```
# Getting Started
Source: https://docs.trase.dev/paidresources/donation/getting-started
A powerful and user-friendly FiveM script that simplifies the process of delivering purchased items to clients in your server. With its seamless integration of the Tebex API, this script allows you to automate package claims, freeing up valuable time and resources that can be spent on other important aspects of your server management.
## Getting Started
### Installation Guide
1. Download the most up to date resource from keymaster.
2. Drag the "trase\_donor" into your resources. `(You can rename the resource)`
3. Open the "config.lua" then follow the configuration guide.
4. Add "ensure trase\_donor" to your server.cfg.
5. Make sure everything works as expected, for any support contact us via discord.
# Package Guide
Source: https://docs.trase.dev/paidresources/donation/package-guide
This is where you can learn how to add packages from your tebex to the script to allow your customers to claim there rewards automatically.
Make sure to take time and configure this properly, this can get confusing but we promise the script works! If you need any support please reach out to us via discord!
## Add Packages
1. Open the config file and locate `config.packages`.
2. Create a new package by following this format:
```lua config.lua theme={null}
['Package Name On Tebex'] = {
rewards = {
['item_name'] = amount_to_give,
['item_name'] = amount_to_give,
['item_name'] = amount_to_give,
}
}
```
The "Package Name On Tebex" needs to be **EXACTLY** the same as it is displayed on the tebex, even a misplaced space can throw it off. (its best to just copy/paste the name)
## Example
For this example I will be using the "Money" packages on [Bandit RP](https://banditrp.vip/category/money).
1. We will copy the Name directly from tebex.
2. We will paste it directly into the `['Package Name On Tebex']`
3. Then after that we will configure the rewards, we use ESX so we will add money.
```lua config.lua theme={null}
['Money Tier #1'] = {
rewards = {
['money'] = 50000,
}
}
```
# Common Issues
Source: https://docs.trase.dev/paidresources/drugs/common-issues
This is where you can find the most common issues and fixes with our script. (if the script is new, this may be empty and will be updated overtime)
### No issues reported as of 4/20/24.
# Configuration Guide
Source: https://docs.trase.dev/paidresources/drugs/config-guide
This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via [discord](https://discord.gg/trase)!
## Configuration Guide
### Framework Selection
This is where you can choose your framework, recommended to just leave this on "auto".
```lua Config.lua theme={null}
Config.Framework = 'auto' -- (type: string)
```
### Trase Dealer Script
This is the name of the "trase\_dealer" resource, its required for the script. If you renamed it put the correct name here.
```lua Config.lua theme={null}
Config.Dealer = 'trase_dealer' -- (type: string)
```
### Discord Logs
This is where you can enable/disable discord logs. **If Enabled,** You need to set the webhook in `server/open.lua` on the first line.
```lua Config.lua theme={null}
Config.DiscordLogs = true -- (type: boolean)
```
### Discord Role Benifits
This is where you can configure discord roles to have and receive benifits (example, VIP users)
```lua Config.lua theme={null}
Config.RoleBenifits = {
Enabled = true, -- (type: boolean) If enabled, players will get benifits from their discord role. (pulls from the top role in the list, so make sure the most important role is at the top.)
StackMultipliers = true, -- (type: boolean) If enabled, the player will stack the multipliers from the discordRole + rank.
Roles = { -- (type: table)
{ -- You can add as many roles that you want!
RoleId = 960632501775257671, -- (type: number) the discord role ID
Benifits = {
CollectionSpeed = 25, -- 25% faster collection speed
ProcessSpeed = 25, -- 25% faster process speed
Multiplier = 2, -- 2x the rewards
}
}
}
}
```
### Config.RaidCommand
This is where you can enable/disable the raid command.
```lua Config.lua theme={null}
Config.RaidCommand = {
Enabled = true, -- If enabled, players can use /raid to start a raid.
CountDown = 30, -- The time in seconds it will count down from.
AnnounceType = 2, -- 1 = Chat, 2 = TXAdmin Message (can be changed in server/open.lua)
Command = 'raid', -- The command to use to start a raid.
Jobs = { ['police'] = true, ['sheriff'] = true }, -- The jobs that can start a raid.
Radius = 100,
Duration = 2, -- The time in minutes the raid will last.
Punishment = 3 -- 1 = Wipe, 2 = Log, 3 = Wipe + Log
}
```
### Change Misc Options
This is where you can edit misc changes in the script
```lua Config.lua theme={null}
Config.Options = {
DrawDistance = 5.0, -- The distance to draw the markers (increasing can hurt performance)
AutoRepeat = true, -- If enabled, the player will not need to press E to farm after each action.
}
```
### Rank Command
This is where you can enable and edit the command for the player to check there drug rank!
```lua Config.lua theme={null}
Config.RankCommand = {
Enabled = true, -- If enabled, players can use /rank to view their rank.
Command = 'drugRank' -- The command to use to view the rank.
}
```
### Rank Configuration
This is where you can configure all the ranks for your server!
```lua Config.lua theme={null}
Config.Ranks = { -- You can add as many ranks that you want!
{
RankLabel = 'Dealer', -- Label of the drug
SellRequirement = 10, -- The minimum amount of drugs needing to be sold to reach this rank.
Benifits = {
CollectionSpeed = 5, -- 5% faster collection speed
ProcessSpeed = 5, -- 5% faster process speed
}
},
{
RankLabel = 'Kingpin',
SellRequirement = 25,
Benifits = {
CollectionSpeed = 25, -- 25% faster collection speed
ProcessSpeed = 25, -- 25% faster process speed
Multiplier = 2, -- 2x the rewards
}
}
}
```
### Drug Configuration
This is where you can configure all the drugs for your server!
```lua Config.lua theme={null}
Config.Drugs = {
-- Configured for: https://www.gta5-mods.com/maps/mlo-enhanced-coke-lab-sp-fivem-dvd6789
['coke'] = { -- The name of the drug (used when police do /raid [location])
Label = 'Coke', -- Label of the drug
Speeds = {
Collection = 10, -- Time in seconds to collect the drug
Process = 5 -- Time in seconds to process the drug
},
Collection = {
Locations = { -- Table where all the collection points are located
vec3(882.4806, -1141.9399, 26.0383),
vec3(880.1509, -1141.8541, 26.0383),
},
-- For options view https://overextended.dev/ox_lib/Modules/Interface/Client/progress for the options. (for only prop + anim)
Options = {
Prop = { model = 'prop_coke_block_half_b', pos = vector3(0.13, 0.03, 0.02), rot = vector3(0.0, 0.0, 0.0) }, -- Prop
Anim = { dict = 'mini@repair', clip = 'fixing_a_ped' } -- Animation
},
Rewards = { -- A table containing all the rewards for collecting. [itemName] = itemAmount
['coke_bag'] = 1
},
Requirements = false -- Can be set to false for no requirements or can be a table with requirements (example below)
},
Process = {
Locations = { -- Table where all the process points are located
vec3(879.9382, -1132.7386, 26.0384)
},
-- For options view https://overextended.dev/ox_lib/Modules/Interface/Client/progress for the options. (for only prop + anim)
Options = {
Prop = { model = 'hei_prop_hei_drug_pack_01b', pos = vector3(0.13, 0.03, 0.02), rot = vector3(0.0, 0.0, 0.0) },
Anim = { dict = 'mini@repair', clip = 'fixing_a_ped' } -- Anim
},
Rewards = { -- A table containing all the rewards for processing. [itemName] = itemAmount
['coke_brick'] = 1
},
Requirements = { -- A table containing all the reqruiments needed for processing the drug.
['coke_bag'] = 10
}
},
}
}
```
# Getting Started
Source: https://docs.trase.dev/paidresources/drugs/getting-started
A complete drug system for FiveM, perfect for servers that want to add depth to their illegal gameplay. This script includes everything from drug collection and processing to leveling, fully supported on ESX and QBCore frameworks. Easy to install, it comes packed with features to enhance the player experience and increase server engagement.
## Getting Started
### Installation Guide
1. Download the most up to date resource from keymaster.
2. Drag the "trase\_drugs" into your resources. `(You can rename the resource)`
3. Open the "config.lua" files then follow the configuration guide.
4. Add "ensure trase\_drugs" to your server.cfg.
5. Make sure everything works as expected, for any support contact us via discord.
# API
Source: https://docs.trase.dev/paidresources/gang/api-guide
This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via [discord](https://discord.gg/trase)!
# Trase\_Gangs — API Reference
This page documents the server exports, client exports, callbacks, events, and NUI interfaces exposed by **Trase\_Gangs**, allowing any external resource to integrate smoothly.
***
## Server Exports
### `GetHandler()`
Returns the main server Handler instance.
```lua theme={null}
local gh = exports['trase_gangs']:GetHandler()
local allGangs = gh:GetAllGangs()
```
### `GetServerHandler()`
Alias of `GetHandler()`.
***
## Client Exports
### `GetClientHandler()`
Returns the client Handler for reading gang state and utilities.
```lua theme={null}
local handler = exports['trase_gangs']:GetClientHandler()
print(handler:GetCurrentGang())
```
***
## Server Callbacks (`lib.callback.register`)
All callbacks use `lib.callback` unless stated otherwise.
* `trase_gangs:server:getPlayerGang`
* `trase_gangs:server:hasPermission`
* `trase_gangs:server:admin:createGang`
* `trase_gangs:server:admin:deleteGang`
* `trase_gangs:server:admin:updateGangSettings`
* `trase_gangs:server:admin:updateGangStash`
* `trase_gangs:server:admin:getAllGangs`
* `trase_gangs:server:getGangDataForUI`
* `trase_gangs:server:inviteMember`
* `trase_gangs:server:kickMember`
* `trase_gangs:server:setMemberRank`
* `trase_gangs:server:updateGangInfo`
* `trase_gangs:server:saveRank`
* `trase_gangs:server:deleteRank`
* `trase_gangs:server:reorderRank`
* `trase_gangs:server:getMemberStats`
* `trase_gangs:server:getAuditLogs`
* `trase_gangs:server:acceptInvite`
* `trase_gangs:server:declineInvite`
* `trase_gangs:server:getPendingInvites`
* `trase_gangs:server:leaveGang`
* `trase_gangs:server:getOnlineMembers`
* `trase_gangs:server:getLeaderboard`
* `trase_gangs:server:getLeaderboards`
### Module-Specific
* `trase_gangs:turfs:checkActive`
* `trase_gangs:turfs:start`
***
## Client Events (Server → Client)
* `trase_gangs:client:openDashboard`
* `trase_gangs:client:openServerManagement`
* `trase_gangs:client:openLeaderboard`
* `trase_gangs:client:gangUpdated`
* `trase_gangs:client:gangRemoved`
* `trase_gangs:client:inviteReceived`
* `trase_gangs:client:playerLoaded`
* `trase_gangs:client:serverReady`
***
## NUI Callbacks
### General UI
* `dashboard:closeUI`
* `serverManagement:closeUI`
* `notify`
### Server Management
* `serverManagement:createGang`
* `serverManagement:deleteGang`
* `serverManagement:updateGang`
* `serverManagement:placeStash`
### Rank Management
* `createRank`
* `updateRankPermissions`
* `renameRank`
* `deleteRank`
* `reorderRank`
* `refreshGangData`
* `getAuditLogs`
* `getNearbyPlayers`
* `inviteMember`
### Gang Wars
* `getGangWarData`
* `sendGangWarInvite`
* `acceptGangWarRequest`
* `declineGangWarRequest`
* `cancelGangWarInvite`
### Leaderboards
* `leaderboard:getAll`
* `leaderboard:closeUI`
* `fetchTheme`
***
## NUI → Client Messages (`SendNUIMessage`)
* `dashboard:open`
* `serverManagement:open`
* `serverManagement:updateGangs`
* `serverManagement:notify`
* `serverManagement:gangCreated`
* `leaderboard:open`
***
## Commands
* `Config.Commands.GangManage`
* `Config.Commands.ServerManagement`
* `Config.Commands.GangLeaderboard`
* `/setgang`
* `/leavegang`
***
## Example Integrations
### Show Gang Name in Another Script
```lua theme={null}
local handler = exports['trase_gangs']:GetClientHandler()
local gang = handler:GetCurrentGang()
if gang then
print(('Player gang: %s (%s)'):format(gang.label, gang.id))
end
```
# Configuration Guide
Source: https://docs.trase.dev/paidresources/gang/configuration-guide
This is where you will find all the documentation covering the configuration for our script, if you need anything that is not a configurable option do not hesitate to reach out to use via [discord](https://discord.gg/trase)!
This page documents the `Config` options for Trase\_Gangs (see `config.lua`), what they do, and how to modify them safely.
> Quick tip: always make a backup of `config.lua` before making changes in production.
***
## Top-level settings
* `Config.Language` (string)
* Default: `'en'`
* Which locale file to use from `locales/` (e.g., `en.lua`, `fr.lua` if present). Change to match your supported language.
* `Config.Debug` (boolean)
* Default: `false`
* When `true` the resource prints verbose debug messages to the server console. Useful while setting up or diagnosing issues.
* `Config.InteractionType` (string)
* Default: `'ox_lib'`
* Set which interaction system the client uses. Supported values: `ox_lib` or `ox_target` (choose whichever you have installed).
* `Config.Framework` (string)
* Default: `'auto'`
* Auto-detects supported frameworks (ESX / QBCore / QBox / Standalone). Change only if you want to explicitly set the framework (e.g. `'ESX'` or `'QBCore'`).
***
## Commands (Config.Commands)
These are the chat/console commands users and admins can call. Change keys to customize command names:
* `GangManage` — default `gangmanage` (opens gang management UI for users in a gang)
* `ServerManagement` — default `gangs` (admin-only server management UI)
* `GangLeaderboard` — default `gangleaderboard` (opens leaderboard UI)
Example: to change the leaderboard command to `/leaderboard`, edit:
```lua theme={null}
Config.Commands.GangLeaderboard = 'leaderboard'
```
***
## Handler config (Config.Handler)
Controls core gang handling and defaults.
* `DefaultMaxMembers` (number) — default `10`
* Default maximum members for newly-created gangs.
* `DefaultMaxRanks` (number) — default `5`
* Default rank slots created for new gangs.
* `InviteExpiryTime` (number) — default `3600` (seconds)
* How long invites remain valid before expiring (seconds).
* `ReputationEnabled` (boolean) — default `true`
* Toggle reputation system.
* `ReputationRewards` (table)
* Numeric reputation rewards for various victory types (Turf, Drugzone, GangWar). Example:
```lua theme={null}
ReputationRewards = { TurfWin = 100, DrugzoneWin = 75, GangWarWin = 150 }
```
* `UnlocksEnabled` (boolean) — default `true`
* Allow gangs to purchase unlocks (e.g., storage upgrades, member slots).
* `Unlocks` (table) — a map of unlock keys to cost and label, e.g.:
```lua theme={null}
Unlocks = {
storage_upgrade_1 = { cost = 500, label = 'Storage Upgrade Tier 1' },
member_slots_1 = { cost = 750, label = '+5 Member Slots' },
}
```
Adjust costs/labels based on your economy.
***
## Features (Config.Features)
Each feature block toggles subsystems and config options.
### Drugzones
* `Enabled` (boolean) — Enable the drugzone game type.
* `Duration` (seconds) — How long a drugzone event runs.
* `WinningPoints` (number) — Points needed for a win.
* `PointsPerSecond` (number) — Points accumulated per second when in control.
* `MarkerType` (number) & `MarkerColor` (table) — Visual markers.
* `Zones` (table) — Named zones that include `coords` (vector3/vec3), `radius`, optional NPC spawn data, and `KillRewards` table.
Example zone config snippet in `config.lua`:
```lua theme={null}
Zones = {
['Testing Zone'] = {
coords = vector3(398.6851, -1996.0840, 22.1991),
radius = 50.0,
NPC = { model = 's_m_m_chemsec_01', coords = vector4(...), scenario = 'WORLD_HUMAN_GUARD_PATROL' },
KillRewards = { Enabled = true, Rewards = { [1] = {label='First Kill', rewards = {['money'] = 5000}} } }
}
}
```
### Turfs
* `Enabled` (boolean) — Enable turf zones.
* `Duration` (seconds) — How long the turf capture takes.
* `Zones` — Similar to Drugzones, zones for turfs.
* `KillRewards` — Optional kill-based reward tiers.
### GangWars
* `Enabled` (boolean) — Enable gang-wars subsystem.
* `KillFeed` (boolean) — Show kill feed related to wars.
* `MinWager` / `MaxWager` — Min/max betting values for wagers between gangs.
* `TargetKills` — Kills required to win a gang war.
### Leaderboards
* `Enabled` (boolean) — Toggle leaderboard systems (server UI & NUI support).
***
## UI (Config.UI)
Controls the NUI appearance and colors. Example values are hex color strings used across the web UI.
* `Colors` — A table of color keys used in the front-end (bg\_dark, bg\_panel, accent, danger, text\_primary, border etc.). Edit them to theme the UI. Example:
```lua theme={null}
Config.UI.Colors.accent = '#3b82f6'
```
> Tip: You can replace the color palette to quickly switch the theme (a red theme example is included as commented-out code in `config.lua`).
***
## Notes / Safety
* Changing `DefaultMaxMembers`/`DefaultMaxRanks` affects newly created gangs only; existing gangs keep their saved values in the DB.
* If you disable a feature (e.g., `Config.Features.Drugzones.Enabled = false`) the module won't be loaded at startup.
* Always restart the resource after making changes to `config.lua` for them to apply.
***
If you'd like I can convert this into inline comments inside `config.lua` or add a sample `server.cfg` snippet in a separate `EXTRA.md` file. Want me to add either?
# Getting Started
Source: https://docs.trase.dev/paidresources/gang/getting-started
An advanced gang system for FiveM. It is the all-in-one Gang Solution for your FiveM server, with an administration panel to easily create and manage all gangs, a gang management panel where gang owners can manage there gang, drugzones, turfs, gangwars, leaderboards, and so much more. It works on all popular frameworks, and even standalone.
## Getting Started
### Installation Guide
1. Download the most up to date resource from keymaster.
2. Drag the "trase\_gangs" into your resources. `(You can rename the resource)`
3. Open the "config.lua" and follow the configuration guide.
4. Add "ensure trase\_gangs" to your server.cfg.
5. Make sure everything works as expected, for any support contact us via discord.
# Terms Of Service
Source: https://docs.trase.dev/terms-of-service
Make sure to follow and read all of the terms and service, by purchasing any resource you agree to these terms.
Breaking any of these terms of service gives Trase.Dev and all his associates access to decline giving support and can result in your license resource(s) being revoked.
1. Reselling any offical Trase.Dev asset without correct authorization.
2. Purposely attempting to promote any Trase.Dev asset in a negative and/or malicious way.
3. Attempting to leak, crack, decrypt, or view any decrypted code.
4. Attempting to abuse any Trase.Dev asset's features, such as discord logs.
5. Refunds are not allowed, nor offered. All sales are final.
6. Support will not be given if you do not have the Customer discord role.
7. Any customer who decides to leave the discord, or gets there account punished from discord is NOT entitled to receive any incentives back, including discord roles.
8. Affiliated with any leaking discords. (e.g. Owner, Manager, Staff, etc)