It looks something like this:
PHP Code:
//#CLIENTSIDE
function onCreated() {
// disable profile feature with enablefeatures
}
function onMouseDown(clicktype) {
if (clicktype == "right") {
// use mousex, mousey to find a player object
// if there is a player
// open profile context menu
}
}
You can open a player's profile by calling:
playerObject.showProfile();