Files
reallife-gamemode/ReallifeGamemode.Client/Gui/wanteds.ts
2020-03-29 13:58:50 +02:00

7 lines
261 B
TypeScript

export default function wanteds(globalData: IGlobalData) {
var browser = mp.browsers.new("package://assets/html/wanteds/index.html");
mp.events.add("SERVER:SetWanteds", (count: number) => {
browser.execute(`setWanteds(${count});`);
});
}