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

Returns:

  • Table(size, shots, burst, color)

Get Vehicle Dyno Properties

Returns:

  • Table(torque, power, brakes)

Events

Add Account Money

Adds x money to the given account.

Remove Account Money

Removes x money from the given account.

Set Account Money

Sets the account balance of the given account to x.

Last updated