Got script working to double up on badges of justice

This commit is contained in:
2023-11-27 17:48:48 -05:00
parent fc84609aba
commit 0607aadd62

View File

@@ -1,2 +1,13 @@
local PLAYER_EVENT_ON_LOOT_ITEM = 32
local PLAYER_EVENT_ON_LOOT_ITEM = 32
local ITEM_BADGE_OF_JUSTICE = 29434
local function OnPlayerLootItem(event, player, item, count)
local entry = item:GetDisplayId()
if (entry == 29434) then
player:AddItem(ITEM_BADGE_OF_JUSTICE, count)
end
end
RegisterPlayerEvent(PLAYER_EVENT_ON_LOOT_ITEM, OnPlayerLootItem)