Create an account

Vehicle Tweaker API  

Upload: 01 Aug 2022, 06:10
Created by: soulfilcher [X]
Uploaded by: Aqxaro
Vehicle Tweaker API

Inspired by and modified from DarkSlayerEX's Item Tweaker API

UPDATE 02/01/2021:
-Added vehicle area tweaks extension by Aiteron

This modding API allows any modders to make multiple changes to any vehicles , while leaving the rest of the remaining values alone.

WARNING: For now I can't guarantee that most values tweaked are free of bugs, so use and test at your own risk.

Tested and working values: forcedColor, mass, maxSpeed, mechanicType.

For the Simplest Implementation through LUA:
-----------------------------------------------------------------------Begin File
if getActivatedMods():contains("VehicleTweakerAPI") then
require("VehicleTweaker_Core");
else return end

TweakVehicle("Base.CarNormal","mass", "8000");
TweakVehicle("Base.ModernCar","forcedColor", "1.0 0.5 0.5");
TweakVehicle("Base.Van","mechanicType", "1");

TweakVehicleArea("Base.SportsCar", "area SeatFrontLeft", "xywh = 0.6264 -0.1429 1.4725 1.4725")
-----------------------------------------------------------------------End File
For each vehicle and property you wish to change, create a new line, and place the related values in place.

Monkey's Library

Monkey's Library

28 Dec 2022
0
1 284
0

Serves as a dependency for some of my other mods. Get in contact if you wish to use this in your mod. Unfortunately it's not well documented yet.

Comments
The minimum comment length is 10 characters.