Mugshot Board 1.0.0

   (2 reviews)
Sign in to follow this  

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();
    }
});

 




User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

ragempdev

Report ·

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

rendertargetmp +rep

Share this review


Link to review
hubba

Report ·

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

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

Share this review


Link to review