Aded vehicle sync system (engines now have to be tuned on /off with N key)

This commit is contained in:
hydrant
2018-12-09 20:35:30 +01:00
parent 01bd291e81
commit d50ffa0556
7 changed files with 1005 additions and 6 deletions

View File

@@ -9,6 +9,8 @@
var chat = false;
var showGui = true;
const player = mp.players.local;
//ENTER
mp.keys.bind(0x0D, false, function () {
if (chat === true) {
@@ -66,6 +68,8 @@ mp.keys.bind(0x4C, false, function () {
//N //Motor Starten
mp.keys.bind(0x4E, false, function () {
if (!chat) {
if (!player.vehicle) return;
if (player.vehicle.getSpeed() > 5) return;
mp.events.callRemote("keyPress:N");
}
});