Skip to content

Getting Started

Configuration

Change the settings to fit your server.


All settings live in the config file inside the script folder. Every option is commented so you know what it does.

Editing the config#

  1. Open resources/zolt_vehicletransfer/config.lua in a code editor (VS Code is recommended).
  2. Change the values you need. Keep the commas and brackets intact.
  3. Save the file and restart the script.
config.lua· lua
Config = {} Config.Framework = 'auto' -- auto | qb-core | qbox | esx | standalone  Config.Notify = 'auto' -- chat | ox_lib | qb | esx | okok | mythic | wasabi Config.UI = 'nui' -- nui | ox_lib Config.VehicleTable        = 'player_vehicles'Config.VehicleOwnerColumn  = 'citizenid' -- if you are using qb-core or qbox, this should be set to 'citizenid'. For esx, it should be 'owner'. Config.MinPrice = 1000 -- Adjust this value as needed based on your server's economy and balance.Config.MaxPrice = 1000000 -- Adjust this value as needed based on your server's economy and balance. Config.Webhook       = "" -- set your discord webhook here to log transfers, leave empty to disableConfig.WebhookColor  = 3447003 -- you can use this website to get the color code: https://www.spycolor.com/Config.WebhookName   = "Zolt VehicleTransfer"Config.WebhookAvatar = "" Config.Locale = {    ['no_vehicles']        = "You don't have any vehicles to transfer",    ['select_vehicle']     = 'Select Vehicle to Transfer',    ['select_player']      = 'Enter Player ID',    ['enter_price']        = 'Enter Price (Min: $%s, Max: $%s)',    ['confirm_transfer']   = 'Confirm Transfer',    ['transfer_details']   = 'Vehicle: %s\nPlayer ID: %s\nPrice: $%s',    ['confirm']            = 'Confirm',    ['cancel']             = 'Cancel',    ['transfer_sent']      = 'Transfer request sent to player',    ['invalid_player']     = 'Invalid player ID',    ['invalid_price']      = 'Invalid price! Must be between $%s and $%s',    ['transfer_request']   = 'Vehicle Transfer Request',    ['transfer_request_msg'] = '%s wants to transfer you a %s for $%s',    ['accept']             = 'Accept',    ['decline']            = 'Decline',    ['transfer_declined']  = 'The player declined your transfer',    ['transfer_cancelled'] = 'You declined the transfer',    ['transfer_success']   = 'Vehicle transferred successfully!',    ['transfer_received']  = 'You received a %s for $%s',    ['not_enough_money']   = "You don't have enough money!",    ['player_offline']     = 'The player is no longer online',    ['vehicle_not_found']  = 'Vehicle not found in your garage',}

Applying changes#

Restart just this script from the server console or txAdmin:

Server console· bash
restart zolt_vehicletransfer

Warning

If you see a Lua syntax error after editing, you've most likely removed a comma or a quote. Undo your last change and try again.

Your cart

Your cart is empty.

Browse scripts

Saved Items(0)

No saved items yet

Tap the heart on a product to keep it here.

Browse scripts
Configuration · Vehicle Transfer System | Zolt Scripts