RedM documentation
Murphy's Collectible
Developers
Framework adapters
The framework code lives in open files, so you can adapt it or support another framework.
| Framework | Server | Client |
|---|---|---|
| VORP | server/adapters/VORPAdapter.lua |
client/adapters/VORPAdapter.lua |
| RSG Core | server/adapters/RSGAdapter.lua |
client/adapters/RSGAdapter.lua |
| REDEM:RP 2023 | server/adapters/REDEMRP2k23Adapter.lua |
client/adapters/REDEMRP2k23Adapter.lua |
Each file only runs when Config.framework matches.
Server functions
| Function | Returns |
|---|---|
GetCharIdentifier(src) |
Character id as a string, or nil |
GetCharFirstname(src) |
First name |
GetCharLastname(src) |
Last name |
GetCharMoney(src, currency) |
Money of the character ("cash" or "gold") |
AddCurrency(src, amount, currency) |
true when paid |
RemoveCurrency(src, amount, currency) |
true when removed |
GiveItem(src, item, amount, meta) |
true when given |
RemoveItem(src, item, amount, meta) |
true when removed |
GetItemAmount(src, item) |
How many of this item the player has |
The adapter also registers the album item (Config.OpenItem) as usable.
Client functions
| Function | Description |
|---|---|
ShowNotification(title, text) |
Notification with a title |
ShowTip(text) |
Short message |
Custom framework
- Copy the adapter closest to your framework, server and client.
- Change the check at the top to your own value, for example
if Config.framework ~= "myframework" then return end. - Rewrite each function with your framework's API.
- Set
Config.framework = "myframework".
Keep the function names and return values: the rest of the script relies on them.
Last updated: December 5, 2026