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

Function

setPickupRespawnInterval

ServerPickupsIdentical to MTA:SA

Sets the time (ms) after which a collected pickup reappears.

Syntax

bool setPickupRespawnInterval(pickup thePickup, int ms)

Arguments

thePickuppickup
The pickup.
msint
Time in ms.

Returns

true on success.

Example

local pickup = createPickup(0, 0, 3, 0, 100)
setPickupRespawnInterval(pickup, 120000)

See also