index.js vom polygon hinzugefügt

This commit is contained in:
Fabian
2021-04-22 17:24:22 +02:00
parent ce7791a693
commit 17c2392a64
4 changed files with 53 additions and 6 deletions

View File

@@ -7,14 +7,14 @@ export function isPlayerInNoDMZone(pos) {
return false;
}
export default function positionHandler() {
export default function nodmHandler() {
mp.events.add('playerEnterPolygon', (polygon) => {
mp.gui.chat.push("entered");
});
mp.events.add('playerLeavePolygon', (polygon) => {
mp.gui.chat.push("entered");
mp.gui.chat.push("leaved");
});
setInterval(() => {