DarkRP.PlayerGetSalary

From Official DarkRP Wiki
Jump to: navigation, search
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

DescriptionCalled when a player receives salary
Syntax
GAMEMODE:PlayerGetSalary(Player ply, number amount)
Returnsnil

Arguments

  • ply (Player)
  • The player who got paid

  • amount (number)
  • The amount of salary in dollars

    Examples

    Descriptionprints players who get salary
    Code
    hook.Add( "PlayerGetSalary", "example", function(ply, amount)
    	print(ply:Nick() .. " received salary: $" .. amount)
    end)
    Outputa print message