Vehicle Tweaker API

If you liked this item, please rate it up on Steam Workshop page.

Author: soulfilcher

Last revision: 26 Sep, 2022 at 19:57 UTC

File size: 37.89 KB

On Steam Workshop

Description:

Inspired by and modified from DarkSlayerEX’s Item Tweaker API

UPDATE 09/21/2022:
-Moved functions from client folder to shared folder for multiplayer compatibility.
-Tweaking vehicle skins now accept properties that include "skin", like "skin2", "skinfossoil" and so on, allowing for more than one skin variation.

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.

There’s an example mod here https://steamcommunity.com/sharedfiles/filedetails/?id=1430481582

Join my Discord server to talk about my mods: https://discord.gg/dzbZgzXNTT
And if you can always…
[www.patreon.com]

Workshop ID: 1430463738
Mod ID: VehicleTweakerAPI