Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia II mods => Topic started by: jaca37 on May 15, 2012, 01:04:01 PM

Title: LUA scripts with injector v6
Post by: jaca37 on May 15, 2012, 01:04:01 PM
I'm using incjector v6 from this site. I can use all anims, police, inventory scripts, but when I try to change model the game crashes. I'm using model commands by existenz34's wikia: game.game:ChangePlayerModel("vitvez", -1). BTW, when I change model in freeride script (that one by Costa, I guess), I begin game with the model I wanted without crash or even lag. If you know what's wrong please help  (//wp-content/uploads/invision_emoticons/smile.png)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">
Title: LUA scripts with injector v6
Post by: zahar999 on May 15, 2012, 02:33:47 PM
enter into the injector


 




DelayBuffer:Insert(function(l_1_0)CommandBuffer:Insert(l_6_0,{function(l_1_0)game.game:ChangePlayerModel("vitvez")end})end,{l_1_0},100,1,false)
Title: LUA scripts with injector v6
Post by: jaca37 on May 16, 2012, 10:50:22 PM
Thanks, now it works perfectly  <img src="/wp-content/uploads/invision_emoticons/biggrin.png" alt="(//bigsmile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/biggrin@2x.png 2x" width="20" height="20">