Character:getMoney - brianhang/nutscript2 GitHub Wiki
Description
Character:giveMoney(amount)
This server function gives a character a certain amount of money.
Parameters
| Name | Description |
|---|---|
amount |
The amount to give. |
Side Effects
- The character's money is changed.
Errors
amountis not anumber
Example
-- Create a command that gives a player more money.
concommand.Add("moremoney", function(client, command, arguments)
if (client:getChar()) then
client:getChar():takeMoney(50)
end
end)