Finished migration to TypeScript, temporary disabled char creator

This commit is contained in:
hydrant
2019-03-11 22:17:49 +01:00
parent 715cf3c1e6
commit 8ce3fd6f52
71 changed files with 4800 additions and 4627 deletions

View File

@@ -0,0 +1,15 @@
export default function tuningSync() {
mp.events.add('entityStreamIn', (entity) => {
if (entity.isAVehicle()) {
var mod18 = entity.getVariable('mod18');
if (mod18 !== undefined) {
entity.toggleMod(18, mod18);
}
}
});
mp.events.add('vehicleToggleMod', (veh, slot, newval) => {
veh.toggleMod(slot, newval);
});
}