Object::setPickupRegenerationTime

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Syntax

mp.game.object.setPickupRegenerationTime(Pickup, Duration);

Required Arguments

  • Pickup: Pickup handle int
  • Duration: Time int (ms)

Return value

  • Unknown

Example

// Creates a rotating health pickup with 50hp and respawning time 10 mins
let pickup = mp.game.object.createPickupRotate(-1888453608, 1985.56, 3050.966 + 3, 47.21, 0, 0, 0, 9, 50, 0, true, mp.game.joaat('prop_ld_health_pack'));
mp.game.object.setPickupRegenerationTime(pickup, 600000);

See also