Jump to content

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

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

   2 of 2 members found this review helpful 2 / 2 members

rendertargetmp +rep

hubba

   1 of 2 members found this review helpful 1 / 2 members

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

×
×
  • Create New...