Skip to content

User:removeMoney()

Remove money from player

Syntax

lua
User:removeMoney(amount, moneyType)

Parameters

amount : float

The amount of money removed

moneyType : integer

moneyType = 0 > dollar
moneyType = 1 > gold
moneyType = 2 > rol

Example

lua
local source = 1
local amount = 100.0
local moneyType = 1
local user = jo.User:get(source)
user:removeMoney(amount,moneyType)

Last updated: