15 lines
535 B
TypeScript
15 lines
535 B
TypeScript
import { VehicleSeat } from "../game";
|
|
|
|
export default function () {
|
|
mp.events.addDataHandler("vehicleAdminSpeed", (entity, newValue) => {
|
|
if (!entity.isAVehicle()) return;
|
|
entity.setEnginePowerMultiplier(newValue);
|
|
mp.gui.chat.push("Debug0");
|
|
});
|
|
mp.events.addDataHandler("vehicleAdminSpeed2", (entity, newValue2) => {
|
|
if (!entity.isAVehicle()) return;
|
|
mp.gui.chat.push("Debug1");
|
|
entity.setEngineTorqueMultiplier(newValue2);
|
|
mp.gui.chat.push("Debug2");
|
|
});
|
|
} |