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)

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.

Last updated