ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getPickupAmount

Function

getPickupAmount

Server and clientPickupsIdentical to MTA:SA

Returns the health or armour points given by a type 0 or 1 pickup.

Syntax

int getPickupAmount(pickup thePickup)

Arguments

thePickuppickup
The pickup.

Returns

The points, or false.

Example

local pickup = createPickup(0, 0, 3, 1, 50)
outputDebugString("Pancerz: " .. getPickupAmount(pickup))

See also