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

Function

getPickupRespawnInterval

ServerPickupsIdentical to MTA:SA

Returns the time (ms) after which a collected pickup comes back.

Syntax

int getPickupRespawnInterval(pickup thePickup)

Arguments

thePickuppickup
The pickup.

Returns

Time in ms, or false.

Example

local pickup = createPickup(0, 0, 3, 0, 100, 45000)
outputDebugString(getPickupRespawnInterval(pickup) .. " ms")

See also