Method:
On_LootUse
Argument(s):
1: LootStartEvent lse
Examples:
On_LootUse
Argument(s):
1: LootStartEvent lse
Examples:
JavaScript:
Python:
def On_LootUse(self, LootStartEvent):
# If Entity is a Chest, not a backpack, and Player is not an Admin
if LootStartEvent.IsObject and not LootStartEvent.Player.Admin:
LootStartEvent.Cancel()
Code:
function On_LootUse(LootStartEvent)
-- If Entity is a Chest, not a backpack, and Player is not an Admin
if LootStartEvent.IsObject and not LootStartEvent.Player.Admin then
LootStartEvent:Cancel()
end
end