fixed /aspeed

This commit is contained in:
hydrant
2019-05-09 14:46:26 +02:00
parent 2c63278aa3
commit 2e44024bdd
4 changed files with 14 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
export default function () {
mp.events.addDataHandler("vehicleAdminSpeed", (entity, newValue) => {
mp.gui.chat.push("datahandler event");
if (!entity.isAVehicle()) return;
mp.gui.chat.push("newValue = " + newValue.toString())
entity.setEnginePowerMultiplier(newValue);
});
}