Project Zomboid
683 คะแนน
Vehicle Tweaker API
2
   
รางวัล
ชื่นชอบ
ชื่นชอบแล้ว
เลิกชื่นชอบ
ขนาดไฟล์
โพสต์
อัปเดต
78.621 KB
3 ก.ค. 2018 @ 10: 59am
23 ธ.ค. 2024 @ 9: 46am
5 หมายเหตุการเปลี่ยนแปลง ( ดู )
คำอธิบาย
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 ความเห็น
Davi GO 24 มิ.ย. @ 2: 59pm 
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 ก.ค. 2024 @ 2: 29am 
Is it somehow possible to change how much a car can pull?
hakob 18 ก.ค. 2024 @ 7: 55am 
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 ส.ค. 2023 @ 5: 26pm 
Thanks for the reply, if I test it out I'll come by with the results :)
soulfilcher  [ผู้สร้าง] 16 ส.ค. 2023 @ 9: 51am 
@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 ส.ค. 2023 @ 12: 14am 
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 มิ.ย. 2023 @ 10: 29am 
What mods use this?
Kitsune 15 พ.ค. 2023 @ 11: 07am 
i get tis, any idea how to fix it? https://gyazo.com/eec94f8caede926b942c6766c44e599d
Rodahtnov 12 ก.พ. 2023 @ 5: 57pm 
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  [ผู้สร้าง] 12 ก.พ. 2023 @ 5: 17pm 
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.