Exports & Events

Explanation of how the shop accounts work and useful exports/events to be used in other resources.

Get Account Money

Gets the account balance/money from a given shop.

Server

exports['t1ger_tuningsystem']:GetAccountMoney(shopId)
-- shopId(INT): tuner shop id

Add Account Money

Adds x money to the given account.

Server

exports['t1ger_tuningsystem']:AddAccountMoney(shopId, amount)
-- shopId(INT): tuner shop id
-- amount(INT): amount of money to add to the account

Client

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.

Server

exports['t1ger_tuningsystem']:RemoveAccountMoney(shopId, amount)
-- shopId(INT): tuner shop id
-- amount(INT): amount of money to remove from the account

Client

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.

Server

exports['t1ger_tuningsystem']:SetAccountMoney(shopId, amount)
-- shopId(INT): tuner shop id
-- amount(INT): amount of money to set the new account balance to.

Client

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