T1GER Scripts Documentation
Tebex StoreDiscordYouTubeCFX Forum
  • T1GER Scripts Documentation
  • Quick Links
    • t1ger.net | Shop Now
    • Join Discord
  • Information
    • FiveM Asset Escrow
  • Resources
    • T1GER Mechanic
      • Installation
        • Job Account
          • Setup
          • API
      • Configuration
        • Shop
      • API
        • Exports
        • Events
      • Troubleshoot
    • T1GER Library
      • Installation
        • Inventory
        • Target
        • Garage
        • Society Account
        • Vehicle Properties
      • Configuration
    • T1GER Gang System
      • Installation
      • Gang Garages
      • Product Information
    • T1GER Tuning System
      • Installation
      • API
        • Client
        • Server
      • Troubleshoot
        • Common Issues
        • Error Codes
      • Guides
        • Commands
        • Shops
        • Markers
        • Mod Stations
        • Pricing
        • Mod Orders
        • Vehicle Mods
        • Engine Swaps
        • Nitrous
    • T1GER ATM Robbery
      • Installation
      • API
        • Client
        • Server
      • Troubleshoot
        • Common Issues
        • Error Codes
      • Guides
        • Hacking Minigame
        • Dispatch
    • T1GER Dealerships
  • Free Resources
    • T1GER Keys
    • T1GER Garage
    • T1GER Bank Robbery
    • T1GER Tow Trucker
Powered by GitBook
On this page
  • Exports
  • Is Player Tuner
  • Get Item Info
  • Get Vehicle Nitrous Properties
  • Get Vehicle Dyno Properties
  • Events
  • Add Account Money
  • Remove Account Money
  • Set Account Money
  1. Resources
  2. T1GER Tuning System
  3. API

Client

In this section you can find client-sided exports and events to be used/integrated with other resources.

Exports

Is Player Tuner

Returns whether the player is tuner or not. If tuner it also returns the shopId.

exports['t1ger_tuningsystem']:IsPlayerTuner()
-- returns boolean(true/false). If true, also returns INT (shopId)
-- Example:
local isTuner, shopId = exports['t1ger_tuningsystem']:IsPlayerTuner()

Returns:

  • Boolean(true/false)

  • INT(shopId) - only returns if boolean is true

Get Item Info

exports['t1ger_tuningsystem']:GetItemInfo(itemName)
-- itemName (string): the name of the item
-- Example:
local itemInfo = exports['t1ger_tuningsystem']:GetItemInfo(itemName)

Returns:

  • Table(name, label, price, icon)

Get Vehicle Nitrous Properties

exports['t1ger_tuningsystem']:GetVehicleNitrousProperties(vehicle)
-- vehicle(int): entity handle for the vehicle
-- Example:
local nitrous = exports['t1ger_tuningsystem']:GetVehicleNitrousProperties(vehicle)

Returns:

  • Table(size, shots, burst, color)

Get Vehicle Dyno Properties

exports['t1ger_tuningsystem']:GetVehicleDynoProperties(vehicle)
-- vehicle(int): entity handle for the vehicle
-- Example:
local dyno = exports['t1ger_tuningsystem']:GetVehicleDynoProperties(vehicle)

Returns:

  • Table(torque, power, brakes)

Events

Add Account Money

Adds x money to the given account.

TriggerServerEvent('tuningsystem:server:addAccountMoney', shopId, amount)
-- shopId(INT): tuner shop id
-- amount(INT): amount of money to add to the account

Remove Account Money

Removes x money from the given account.

TriggerServerEvent('tuningsystem:server:removeAccountMoney', shopId, amount)
-- shopId(INT): tuner shop id
-- amount(INT): amount of money to remove from the account

Set Account Money

Sets the account balance of the given account to x.

TriggerServerEvent('tuningsystem:server:setAccountMoney', shopId, amount)
-- shopId(INT): tuner shop id
-- amount(INT): amount of money to set the new account balance to.

PreviousAPINextServer

Last updated 6 months ago