убежать от Таркова
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
var ShapeTonneBase = null;
|
||||
var vehicle = null;
|
||||
|
||||
var interval = null;
|
||||
|
||||
var BlipTonne = [];
|
||||
var ShapeTonne = [];
|
||||
|
||||
@@ -71,7 +73,7 @@
|
||||
if (Shape != ShapeTonne[i]) continue;
|
||||
if (!Traegt) {
|
||||
if (!HintenVoll) {
|
||||
mp.events.callRemote('CLIENT:MuellmannImShape', JSON.stringify(Shape));
|
||||
mp.events.callRemote('CLIENT:MuellmannImShape', i);
|
||||
Traegt = true;
|
||||
BlipTonne[i].destroy();
|
||||
BlipTonne[i] = null;
|
||||
@@ -80,7 +82,7 @@
|
||||
MuellSack = mp.objects.new(600967813, mp.players.local.position, { rotation: new mp.Vector3(0.0, 0.0, 0.0), alpha: 255, dimension: 0 });
|
||||
MuellSack.attachTo(mp.players.local.handle, mp.players.local.getBoneIndex(6286), 0.45, -0.9, -0.075, 270.0, 0.0, 25.0, true, true, false, false, 0, true);
|
||||
|
||||
createMarker();
|
||||
interval = setInterval(function () { createMarker(); }, 250);
|
||||
}
|
||||
else {
|
||||
mp.gui.chat.push("Der Müllwagen ist bereits voll! Fahre zur Base und lade ab!");
|
||||
@@ -98,6 +100,8 @@
|
||||
Traegt = false;
|
||||
mp.events.callRemote('CLIENT:MuellmannAddSack');
|
||||
|
||||
clearInterval(interval);
|
||||
|
||||
if (BlipTonneHinten) BlipTonneHinten.destroy();
|
||||
BlipTonneHinten = null;
|
||||
if (CheckpointTonneHinten) CheckpointTonneHinten.destroy();
|
||||
@@ -115,17 +119,13 @@
|
||||
HintenVoll = false;
|
||||
}
|
||||
});
|
||||
mp.events.add("MuellmannUpdateColshape", (jsonColShape) => {
|
||||
let ColShape = JSON.parse(jsonColShape);
|
||||
for (var i = 0; i < ShapeTonne.length; i++) {
|
||||
if (ColShape != ShapeTonne[i]) continue;
|
||||
BlipTonne[i].destroy();
|
||||
BlipTonne[i] = null;
|
||||
ShapeTonne[i].destroy();
|
||||
ShapeTonne[i] = null;
|
||||
}
|
||||
|
||||
|
||||
mp.events.add("MuellmannUpdateColshape", (index) => {
|
||||
if (BlipTonne[index] != null)
|
||||
BlipTonne[index].destroy();
|
||||
BlipTonne[index] = null;
|
||||
if (ShapeTonne[index] != null)
|
||||
ShapeTonne[index].destroy();
|
||||
ShapeTonne[index] = null;
|
||||
});
|
||||
|
||||
mp.events.add("SERVER:MuellmannZuBase", () => {
|
||||
|
||||
Reference in New Issue
Block a user