Fix Sani 5

This commit is contained in:
VegaZ
2021-04-05 17:22:24 +02:00
parent cc24be5e09
commit 06dcdb64b4
4 changed files with 8 additions and 9 deletions

View File

@@ -113,9 +113,7 @@ export default function keys(globalData: IGlobalData) {
//N //Motor Starten
mp.keys.bind(0x4E, false, function () {
if (!globalData.InChat) {
if (!player.vehicle) return;
if (player.vehicle.getSpeed() > 5) return;
mp.events.callRemote("keyPress:N");
mp.events.callRemote("keyPress:N", player.vehicle.getSpeed());
}
});