RedM documentation

Murphy's Collectible

Developers

Events


Server events, triggered locally on the server. Listen to them with AddEventHandler.

murphy_collectible:server:itemFound

A player got an item (picked up in the world or given by GiveCard).

lua
AddEventHandler('murphy_collectible:server:itemFound', function(src, setCode, itemNum, isDuplicate)
-- isDuplicate = true when it went to the spare items
end)

murphy_collectible:server:setCompleted

A player just completed a set.

lua
AddEventHandler('murphy_collectible:server:setCompleted', function(src, setCode)
end)

murphy_collectible:server:setSold

A player sold a set to the collector.

lua
AddEventHandler('murphy_collectible:server:setSold', function(src, setCode, amountPaid)
end)

Example: a reward for a complete set

lua
AddEventHandler('murphy_collectible:server:setCompleted', function(src, setCode)
if setCode == "GUN" then
-- give a title, an item, a quest step...
end
end)

murphy_platform

If murphy_platform runs, finds, completed sets, sales and trades also show in the player's activity feed. Nothing to set up.


Last updated: December 5, 2026