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

Function

getPickupAmmo

Server and clientPickupsIdentical to MTA:SA

Returns the amount of ammo in a weapon pickup.

Syntax

int getPickupAmmo(pickup thePickup)

Arguments

thePickuppickup
The pickup.

Returns

Ammo amount (0 for other types).

Example

local pickup = createPickup(0, 0, 3, 2, 31, 30000, 200)
outputDebugString("Naboje: " .. getPickupAmmo(pickup))

See also