Character:giveMoney - brianhang/nutscript2 GitHub Wiki
Description
Character:giveMoney(amount)
This server function adds the given amount to the character's money.
Parameters
| Name | Description |
|---|---|
amount |
The amount to add. |
Side Effects
- The character's money is changed.
Errors
amountis not anumber
Example
-- Create a command that gives players 50 money.
concommand.Add("givememoney", function(client, command, arguments)
if (client:getChar()) then
client:getChar():giveMoney(50)
end
end)