DarkRP.PlayerGetSalary
Jump to navigation
Jump to search
ply (Player)
amount (number)
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions. Check here for a up-to-date list of hooks. |
---|
Syntax[edit]
Description | Called when a player receives salary |
---|---|
Syntax |
GAMEMODE:PlayerGetSalary(Player ply, number amount)
|
Returns | nil |
Arguments
The player who got paid
The amount of salary in dollars
Examples[edit]
Description | prints players who get salary |
---|---|
Code | hook.Add( "PlayerGetSalary", "example", function(ply, amount)
print(ply:Nick() .. " received salary: $" .. amount)
end)
|
Output | a print message |