Remove society account money

To remove money from a society

Export

exports["jobs_creator"]:removeSocietyMoney(jobName, amount)

Parameters

NameData TypeDescription

jobName

string

Job ID (example police)

amount

integer

Amount of money to remove

Return value

NameData TypeDescription

isSuccessful

boolean

If money are removed or not

Example

local isSuccessful = exports["jobs_creator"]:removeSocietyMoney("police", 5000)

print(isSuccessful)

Last updated