Added tuning support for colored lights

This commit is contained in:
hydrant
2018-12-15 14:00:01 +01:00
parent 7a5f820068
commit 2818fd3513
5 changed files with 139 additions and 26 deletions

View File

@@ -1,15 +1,10 @@
mp.events.add('entityStreamIn', (entity) => {
if (entity.isAVehicle()) {
var mod18 = entity.getVariable('mod18');
var mod22 = entity.getVariable('mod22');
if (mod18 !== undefined) {
entity.toggleMod(18, mod18);
}
if (mod22 !== undefined) {
entity.toggleMod(22, mod22);
}
}
});