8 lines
317 B
TypeScript
8 lines
317 B
TypeScript
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);
|
|
});
|
|
} |