ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. givePlayerMoney

Function

givePlayerMoney

ServerPlayersIdentical to MTA:SA

Gives the player money.

Syntax

bool givePlayerMoney(player thePlayer, int amount)

Arguments

thePlayerplayer
The player.
amountint
The amount.

Returns

true on success.

Example

addEventHandler("onPlayerWasted", root, function(ammo, killer)
    if killer and killer ~= source and getElementType(killer) == "player" then
        givePlayerMoney(killer, 250)
    end
end)