Files
reallife-gamemode/ReallifeGamemode.Client/Gui/wanteds.ts
2019-06-26 20:09:19 +02:00

7 lines
260 B
TypeScript

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