Skip to content

addSocietyMoney

To add money to a society

Export

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

Parameters

Name Data Type Description
jobName string Job ID (example police)
amount integer Amount of money to add

Return value

Name Data Type Description
isSuccessful boolean If money are added or not

Example

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

print(isSuccessful)