RedM documentation

Murphy's Collectible

Developers

Exports


Server exports, to use the collection in your own scripts (quests, jobs, loot, rewards).

Set codes are listed in Collection list. Item numbers go from 1 to the size of the set.

GetProgress

lua
local progress = exports.murphy_collectible:GetProgress(charid)

Returns the progress of a character, or nil if it is not loaded:

lua
{
found = 57, -- items in the album
total = 320,
sets = {
GUN = { found = 12, total = 12, complete = true, soldAt = nil },
EGGS = { found = 3, total = 10, complete = false, soldAt = 1764950400 },
-- ...
}
}

soldAt is the time the set was last sold (Unix timestamp in seconds), or nil.

HasSet

lua
if exports.murphy_collectible:HasSet(charid, "GUN") then
-- every item of the set is in the album right now
end

GetCompletedSets

lua
local sets = exports.murphy_collectible:GetCompletedSets(charid)
-- { "GUN", "TCUPS", ... }

GiveCard

lua
local ok = exports.murphy_collectible:GiveCard(source, "FOSSILS", 7)

Gives an item to the player's current character. If they already have it, it goes to their spare items. Returns true when given. The player gets the usual notification.

Example: a quest reward.

lua
RegisterNetEvent('myquest:finished', function()
local src = source
exports.murphy_collectible:GiveCard(src, "JEWEL", math.random(1, 39))
end)

Client exports

lua
exports.murphy_collectible:OpenCatalogue() -- opens the album
exports.murphy_collectible:CloseCatalogue() -- closes it

Character id

charid is the character identifier of your framework, the one the adapter returns with GetCharIdentifier(source): charIdentifier on VORP, citizenid on RSG, citizenid on REDEM:RP.


Last updated: December 5, 2026