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

Function

isPickupSpawned

ServerPickupsIdentical to MTA:SA

Checks whether a pickup is currently visible and collectable (rather than waiting to come back after being collected).

Syntax

bool isPickupSpawned(pickup thePickup)

Arguments

thePickuppickup
The pickup.

Returns

true when the pickup is available.

Example

local pickup = createPickup(0, 0, 3, 0, 100)
outputDebugString(isPickupSpawned(pickup) and "Dostepny" or "Czeka")

See also