SetPickupRegenerationTime is not setting regeneration time in LUA, no matter the value

SetPickupRegenerationTime does not seem to be working as expected. I posted in discussion but without any resolve, so this seems to be a bug.
We have tested many variations of this, all drops seems to always respawn between 45 and 60 seconds.

-- client side. 
    local newloot = {
        {drop=0x9CF13918, model=0xD205520E},-- PICKUP_WEAPON_HEAVYPISTOL / WEAPON_HEAVYPISTOL
        {drop=0xDF711959, model=0x83BF0278},-- PICKUP_WEAPON_CARBINERIFLE / WEAPON_CARBINERIFLE
    }
            pickuptime = 600000 -- expected 10 minutes, tried 5 as well.
            newloots = newloot[lootitemnum]
            pickup = CreatePickupRotate(newloots.drop, item.x, item.y, item.z, item.x, item.y, item.z, 512, 120, true, true, newloots.model)
            SetPickupRegenerationTime(pickup, pickuptime)

This is a game function, so therefore not a bug in FiveM at all. Some R* functions have special usage requirements or don’t work in network games, in this case the issue might also be that this function only works on other pickup types.

Closed.

1 Like