fixed /aspeed
This commit is contained in:
8
ReallifeGamemode.Client/admin/aspeed.ts
Normal file
8
ReallifeGamemode.Client/admin/aspeed.ts
Normal 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);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user