This commit is contained in:
2021-04-06 18:48:18 +02:00
parent 2b92e7134f
commit 4654638d9e
4 changed files with 6 additions and 27 deletions

View File

@@ -122,9 +122,8 @@
}, 100)
}
mp.events.add("SERVER:GetInFrontPosition", () => {
let player = mp.players.local;
mp.events.callRemote("CLIENT:SET_InFrontOfPos", player.getOffsetFromInWorldCoords(0, 1, 0));
mp.events.add("SERVER:SetInFrontPosition", (entity) => {
mp.events.callRemote("CLIENT:SET_InFrontOfPos", entity.getOffsetFromInWorldCoords(0, 1, 0));
});
mp.events.add("SERVER:GetInFrontOfPlayer", (entity: PlayerMp) => {