Forum Replies Created
I asked around on a few forums and discord but no one seemed to be interested in M3ScriptHook update.
Mafia3 script modding is completely dead sadly
Is there no one here anymore? Mafia3 has been updated to Definitive Edition and All ScriptHook mod not work again…
First you should post requesting topic to “Mod Requests” category. And second Mafia3 can’t be create a large scale mod just like adding new features or complicated scripting. Unfortunately almost all skilled modders no more cares about this game…
Nice! Did you figure out what the parameters were for game.traffic:SpawnCar?
“game.traffic:SpawnCar” can’t be used after all. I tried to open “game_structure_console.lua” and disabled “DBGVehicleUpgrade” “SetColor” “InstallTuningItems” “SetPainting”.
Unfortunately all scripts are binarized so I had to open Hex editor and substitute invalid values in so many trials and errors. I’m going to upload test version this weekend.
Finally I did it that spawning vehicles without awful upgrades and painting.
Currently the biggest problem is we can’t spawn all vehicles by “bindkey” command because this game has over 70 vehicles.
Hopefully if someone tell me the way to store two digits number by pressing two numeric keys in lua script.
game.game:GetActivePlayer():GetOwner():InstallTuningItems(1601, 1501, 1903, 1701, 1801)
--ItemIds are written in "sds_retail/tables.sds/car_customization.xml"
Found way to install upgrades to current vehicle, but it causes crash immediately just like
It’s soooooooo frustrating and I gave up today.
M3ScriptHook 1.2 does not work for me anymore I decided after a long break to try to run it with the latest version of the game with all DLC (WIN7) I tried to change the compatibility as they write here in the answers but still get the game broke after running M3ScriptHookLauncher . Is there a more recent version of M3ScriptHook than 1.2? by the way the new tool Mafia III ResourceExplorer_1.1 is very good for editing textures. I replaced a couple for the sake of curiosity
I downloaded and using latest version ScriptHook from here (Win7-64bit)
Thanks for info. I found how to execute function here;
Also I tried to
game.traffic:SpawnCarbut not works even with any arguments.
But I found a way to remove unsuitable livery;
I think some scripts are disabled or protected by devs from user-executing such as
I hope more skilled people will take interest in Mafia3 modding.
I found a way to use cheat/debug commands in post #163017.
For example if you want use “carpls” command, make lua script like this.
You can spawn random vehicles by press O key when you’re on-foot.
If you want to spawn spicific vehicle,
But spawning vehicle is always full customized and painted with unsuitable livery.
What a terrible scripting game… 🙁
Anyway anybody knows how to remove upgrade items from current vehicle?
EDIT: OK I solved by myself. I’ll upload weather change script mod later.
Anyone tried to change weather in scripthook? I tried it “game.gfx:SetWeatherSet” like this;
but it occurs error below;
Error loading Lua code into buffer. Error -100
Missing adaptor arguments.
[C]: in function 'SetWeatherSet'
test:2: in function '(main chunk)'
I can’t identify what is “missing adaptor arguments”.
I hope that someone help me thanks.