Project Zomboid

Project Zomboid

683 beoordelingen
Vehicle Tweaker API
2
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
Bijgewerkt op
78.621 KB
3 jul 2018 om 10:59
23 dec 2024 om 9:46
5 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Vehicle Tweaker API

Omschrijving
Compatible with B41 and B42

Inspired by and modified from DarkSlayerEX's Item Tweaker API

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://gtm.steamproxy.vip/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
58 opmerkingen
Davi GO 24 jun om 14:59 
soul mano me salva ai meu game b42 e chapado de mods nesta ultima atualizaçao meu mini map e painel de veiculos sumirao nao sei q fazer entao talvez eles esteja dimencionados fora da tela se este for o cazo como posso trazelos novamente q arquivos devo procura por favor me ajuda ai
]
Elentári 23 jul 2024 om 2:29 
Is it somehow possible to change how much a car can pull?
hakob 18 jul 2024 om 7:55 
couldnt figure out what mod needs this, checked mod I installed same time as this (Expanded Hotwire and Autotsar Dadge), but neither of them needed this or maybe they updated back then
Jacques the Crab 16 aug 2023 om 17:26 
Thanks for the reply, if I test it out I'll come by with the results :)
soulfilcher  [auteur] 16 aug 2023 om 9:51 
@Kitsune: I have no idea what the link was supposed to show me.

@Kyrox: I don't know, I do have an example mod called Paint it Black.

@Percyrus: Yes, it is possible to add templates, but I have not tested that in a very long time.
Jacques the Crab 16 aug 2023 om 0:14 
Hi, does this allow inserting values besides changing existing ones? Imagine I want to add the capability to craft amor and such, would this allow me to insert templates into the vehicle txt file? Thanks!
Kyrox 18 jun 2023 om 10:29 
What mods use this?
Kitsune 15 mei 2023 om 11:07 
i get tis, any idea how to fix it? https://gyazo.com/eec94f8caede926b942c6766c44e599d
Rodahtnov 12 feb 2023 om 17:57 
Changing the particular truckbed item may work, thing is it would apply to all cars using it instead of a particular one (in theory)
May have to think a diff solution ^^
soulfilcher  [auteur] 12 feb 2023 om 17:17 
Did you try changing the item? I remember that at some point trying to change that value from inside a vehicle script was bugged. You always got the value set in the item. I can't say what is the current situation as I have not tried that for a long time.