PlayerDropItem
Fires when a player drops an item onto the ground.
Events.PlayerDropItem(function(event)
if (event.itemType == ItemType.TENNIS_BALL) then
event.cancelled = true
MessageService.sendInfo(event.player, "Be more careful! Those can explode!")
end
end)Parameters
player: Player
itemType: ItemType
amount: number
cancelled: bool [modifiable]
Last updated