Version 1.0.0
208 downloads
This resource introduces the well known scaleform hud for mission/heists. Makes it easy to create it in-game
Known Issues:
Mission end doesn't display black background due to unknown reason, still addressing it.
API:
Client-side API
// Client side
// Credits to kemper for his amazing scaleform class...
/*
* Creates an intro that you see on mission start.
* style: int (1-20) Adds background to the intro banner
* header: Mission title
* subHeader: Mission secondary title
*/
mp.banners.createIntro(style, header, subHeader).then(done => { });
/*
* Creates an objective banner
* style: (1-20) Adds background to the intro banner
* header: Mission title
* objective: Mission secondary title
*/
mp.banners.createObjective(style, header, objective).then(done => { });
/*
* Creates an objective banner
* style: int (1-20) Adds background to the intro banner
* missionName: Mission title
* reason: Reason of pass/fail
* passed: boolean
*/
mp.banners.missionResult(style, missionName, reason, passed).then(done => { });
/*
* Creates an mission end banner.
* style: int (1-20) Adds background to the intro banner
* cashWon: Cash Earned
* level: Object
* {
rpGain: (int),
rpStart: (int),
rpMin: (int),
rpMax: (int),
currentRank: (int),
nextRank: (int),
rankUpText: (string),
rankUpExtraText: (string)
}
*/
mp.banners.missionEnd(style, cashWon, level).then(done => { });
Banner Images:
Intro:
Objective
Mission Complete
Mission End
If you have any issues you know what to do....
Thanks for reading this at least....