This commit is contained in:
2021-04-06 18:18:52 +02:00
parent 5ebdbb67ca
commit 62cde419f9
4 changed files with 4 additions and 5 deletions

View File

@@ -123,8 +123,7 @@
mp.events.add("SERVER:GetInFrontPosition", () => {
let player = mp.players.local;
let result = xyInFrontOfPos(player.position, player.heading, 0.5);
mp.events.callRemote("CLIENT:SET_InFrontOfPos", result);
mp.events.callRemote("CLIENT:SET_InFrontOfPos", player.getOffsetFromInWorldCoords(0, 1, 0));
});
mp.events.add("SERVER:GetInFrontOfPlayer", (entity: PlayerMp) => {