Skip to main content
The client adapter lives in client/custom/framework/<name>/core.lua. Copy standalone to start, then change the guard at the top:
client/custom/framework/custom/core.lua
Set up the server side first. See Server.

IsPlayerLoaded

Whether the character is loaded. The MDT won’t open while this is false.
Set it to true when your framework finishes loading the character, and back to false on logout.

IsPedMale

Returns true if the character is male.

IsOpenable

Returns true if the player can open the MDT right now. Return false while dead, handcuffed, or in any state where your framework blocks UI.

Notify

Shows a notification. Returns nothing. Map type to your notification system’s own types if they differ.

Client events

The server adapter triggers these on the client. You don’t handle them, just make sure they’re sent.