Jump to content
RAGE Multiplayer Community

Mugshot Board 1.0.0

   (2 reviews)

1 Screenshot

About This File

This resource adds a way to make the local player hold a mugshot board with custom text on it, the custom text and animation won't be synced to others.

You can also use this resource to understand how rendertarget system works which lets you display scaleform on certain game objects.

Installing:

Put policetext into your server's client_packages directory, then add require('policetext/index.js'); to index.js.

Available functions/events:

mp.players.local.mugshotboard.show
-> mp.events.call("ShowMugshotBoard")
-> Params: title, topText, midText, bottomText, rank = -1

mp.players.local.mugshotboard.hide
-> mp.events.call("HideMugshotBoard")
-> Params: -
  
And you can access if the local player has a mugshot board or not by using the hasMugshotBoard global variable.

Clientside example (pressing F10 will give your character a mugshot board, pressing it again will remove it):

mp.keys.bind(0x79, false, () => {
    if (!hasMugshotBoard) {
        mp.players.local.mugshotboard.show(mp.players.local.name, "Top Text", "Mid Text", "Bottom Text", 15);
    } else {
        mp.players.local.mugshotboard.hide();
    }
});

 

  • Like 9
 Share


User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest

ragempdev

   1 of 1 member found this review helpful 1 / 1 member

rendertargetmp +rep

Link to review
hubba

   0 of 1 member found this review helpful 0 / 1 member

good................

Link to review
×
×
  • Create New...