LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[BUG] OnPlayerDroppedItem item is null (specific case)

Open OMEGA3065 opened this issue 1 year ago • 1 comments

I have checked this about ~10 times and I've consistently got the same result. When using the SURFACE PASS (keycard?) and you throw it during it's getting destroyed animation (the green light on the pass turning red and the player throwing it away animation) and you press the THROW keybind (I have it on T, pretty sure that's the default keybind) results in the item passed onto OnPlayerDroppedItem being null

TL; DR dropping the surface pass right after use results in OnPlayerDroppedItem's LabApi.Events.Arguments.PlayerEvents.PlayerDroppedItemEventArgs::item being null.

OMEGA3065 avatar Jun 15 '25 16:06 OMEGA3065

This also occurs when taking off SCP-1344 but cancelling the animation before it drops.

xCynDev avatar Jun 18 '25 09:06 xCynDev