Reply To: Mafia II : LUA command
Home / Forums / Modders Corner / Mafia Scene Modders / eXistenZ34’s Mods / Mafia II : LUA command / Reply To: Mafia II : LUA command
after, for working, everyone makes a little as he feels.
For Me by Example
F1 = For exit —> infinite loading – more sounds – animation – more player – Camera
[spoiler:1rl5ova1]
game.hud:FaderFadeIn(250)
game.game:SoundFadeIn(250)
game.game:GetActivePlayer():ShowModel(true)
game.cameramanager:GetPlayerMainCamera(0):LockControl(false,false)
game.game:GetActivePlayer():SetControlStyle(enums.ControlStyle.FREE)
game.game:GetActivePlayer():SetPhysState(enums.PhysicsState.DYNAMIC)
[/spoiler:1rl5ova1]
F2 = return FR
[spoiler:1rl5ova1]
game.sds:ActivateStreamMapLine(“free_joe_load”)
[/spoiler:1rl5ova1]
F3 = return summer
[spoiler:1rl5ova1]
game.sds:ActivateStreamMapLine(“free_summer_load”)
[/spoiler:1rl5ova1]
F4 = return winter
[spoiler:1rl5ova1]
game.sds:ActivateStreamMapLine(“free_winter_load”)
[/spoiler:1rl5ova1]
F5 = divers location
[spoiler:1rl5ova1]
–game.game:GetActivePlayer():SetPos(Math:newVector(-1308.5574951172, 986.83605957031,-17.589883804321)) — Home Villa Greenfield
–game.game:GetActivePlayer():SetPos(Math:newVector( 82.219184875488, 896.54577636719,-13.314183235168)) — Joe
–game.game:GetActivePlayer():SetPos(Math:newVector( 74.664436340332, 913.71484375152,-20.056598663331)) — Joe Garage
–game.game:GetActivePlayer():SetPos(Math:newVector(-649.90618896484, 935.14526367188,-7.9598007202148)) — Vito
–game.game:GetActivePlayer():SetPos(Math:newVector(-639.68249511719, 935.79895019531,-18.914690017712)) — Vito Garage
–game.game:GetActivePlayer():SetPos(Math:newVector( 373.02194213867,-294.42282104492,-15.584340095521)) — Marty
–game.game:GetActivePlayer():SetPos(Math:newVector( 368.13140869141,-281.82098388672,-20.132001876831)) — Marty Garage
–game.game:GetActivePlayer():SetPos(Math:newVector( 274.39508056641, 793.09167480469,-15.496784210205)) — Vito Mother
–game.game:GetActivePlayer():SetPos(Math:newVector(-37.072532653809, 1160.7387695313, 68.364852905273)) — Hillwood garage
–game.game:GetActivePlayer():SetPos(Math:newVector(-331.44158935547, 182.80078125011,-4.7026247978211)) — M2-Multi
–game.game:GetActivePlayer():SetPos(Math:newVector(-1151.9484863281, 1578.6281738281, 6.3188753128052)) — Hill of Tara
–game.game:GetActivePlayer():SetPos(Math:newVector(-46.899543762207, 727.36376953125,-21.990571975708)) — Freddy’s bar
–game.game:GetActivePlayer():SetPos(Math:newVector( 35.290706634521,-66.342155456543,-17.002140045166)) — The Maltese Falcon
game.game:GetActivePlayer():SetPos(Math:newVector( 26.652406692505,-81.648445129395,-16.194694519043)) — The Maltese Falcon Piano
–game.game:GetActivePlayer():SetPos(Math:newVector(-646.11315917969, 360.00296020508, 1.4180455207825)) — The MonaLisa
–game.game:GetActivePlayer():SetPos(Math:newVector(-1381.6616210938, 483.84646606445,-23.117313385011)) — The Lone Star
–game.game:GetActivePlayer():SetPos(Math:newVector( 1242.2125244141, 1271.7690429688, 0.4690062999725)) — Forge
–game.game:GetActivePlayer():SetPos(Math:newVector(-341.39440917969,-735.64990234375,-21.745681762695)) — Derek Port
–game.game:GetActivePlayer():SetPos(Math:newVector(-97.476295471191, 1740.5336914063,-19.234798431396)) — Bruski
–game.game:GetActivePlayer():SetPos(Math:newVector(-165.11447143555,-580.32147216797,-20.350566864014)) — Bruno’s Office
–game.game:GetActivePlayer():SetPos(Math:newVector(-433.02221679688, 795.92248535156,-20.102350234985)) — Office price
–game.game:GetActivePlayer():SetPos(Math:newVector(-433.25164794922, 781.14306640625,-19.939029693604)) — Office price In
–game.game:GetActivePlayer():SetPos(Math:newVector(-522.22491455078,-40.557701110841, 1.0247592926025)) — Jewellery
–game.game:GetActivePlayer():SetPos(Math:newVector( 353.57696533203, 374.77481079102,-19.579500198364)) — Restaurant
–game.game:GetActivePlayer():SetPos(Math:newVector( 381.95062255859, 122.01869964615,-20.211774826051)) — Sea Gift
–game.game:GetActivePlayer():SetPos(Math:newVector(-1542.0977783203,-85.776489257813,-18.244682312012)) — Distillery
–game.game:GetActivePlayer():SetPos(Math:newVector(-381.84838867188, 652.05084228516,-11.594194412231)) — Police
–game.game:GetActivePlayer():SetPos(Math:newVector( 4.0198488235474,-64.208900451661, 300.00000000000)) — Prison
–game.game:GetActivePlayer():SetPos(Math:newVector( 291.78070068359, 1215.8483886719, 63.251049041748))DelayBuffer:Insert(function(l_1_0)game.game:GetActivePlayer():SetPos(Math:newVector( 375.77612304688, 1279.7506103516, 66.089363098145))end,{l_11_0},500,1,false) — Observatoir Activation Map
–game.game:GetActivePlayer():SetPos(Math:newVector( 375.77612304688, 1279.7506103516, 66.089363098145)) — Observatoir
–game.game:GetActivePlayer():SetPos(Math:newVector(-193.45440673828, 824.43365478516,-20.801353454591)) — Carcyclopedia Ext
–game.game:GetActivePlayer():SetPos(Math:newVector(-292.03601074219, 835.83361816406, 9.8275241851807)) — Carcyclopedia In
–game.game:GetActivePlayer():SetPos(Math:newVector(-369.65689086914,-346.05963134766,-13.684614181519)) — Construction Site Bas
–game.game:GetActivePlayer():SetPos(Math:newVector(-449.41287231445,-340.48016357422, 27.940334320068)) — Construction Site Haut
–game.game:GetActivePlayer():SetPos(Math:newVector(-535.01568603516, 1150.0874023438, 31.865810394287))DelayBuffer:Insert(function(l_1_0)game.game:GetActivePlayer():SetPos(Math:newVector(-326.19720458984, 1067.2822265625, 44.848899841309))end,{l_1_0},2000,1,false) — Leo Galante Activation Map
–game.game:GetActivePlayer():SetPos(Math:newVector(-1654.6417236328, 1031.5666503906,-6.3348078727722)) — Mansion Portail
–game.game:GetActivePlayer():SetPos(Math:newVector(-2004.1757812512, 1094.5406494141, 22.615701675415)) — Mansion Villa
–game.game:GetActivePlayer():SetPos(Math:newVector(-596.41143798828,-333.71118164063,-9.4106159210205)) — Empire Arms Hotel
–game.game:GetActivePlayer():SetPos(Math:newVector(-576.66986083984,-313.95117187512, 73.231109619141)) — Empire Arms Hotel 18eme ̮̩tage
–game.game:GetActivePlayer():SetPos(Math:newVector(-582.42517089844,-244.39358520508, 100.40155029297)) — Empire Arms Hotel toit
–game.game:GetActivePlayer():SetPos(Math:newVector( 41.622173309326, 1779.7225341797,-17.866758346558)) — Clemente Ext
–game.game:GetActivePlayer():SetPos(Math:newVector( 41.927108764648, 1800.4672851563,-17.862766265869)) — Clemente In
–game.game:GetActivePlayer():SetPos(Math:newVector(-1542.8310546875,-212.41596984863,-20.335449218751)) — Tram Sand island
–game.game:GetActivePlayer():SetPos(Math:newVector(-498.46887207031,-1.8315485715866,-0.5352652072906)) — Tram West Side ss
–game.game:GetActivePlayer():SetPos(Math:newVector(-106.34381866455,-499.17507934571,-15.895045280457)) — Tram Southport
–game.game:GetActivePlayer():SetPos(Math:newVector( 259.36804199219, 388.70019531251,-21.755012512207)) — Tram Chinatown
–game.game:GetActivePlayer():SetPos(Math:newVector(-295.83929443359, 560.09655761719,-2.2736749649048)) — Tram Uptown
–game.game:GetActivePlayer():SetPos(Math:newVector(-532.10595703125, 1605.9051513672,-16.582725524902)) — Tram Dipton ss
–game.game:GetActivePlayer():SetPos(Math:newVector(-1140.8968505859, 1363.5609130859,-13.572398185731)) — Kingston
–game.game:GetActivePlayer():SetPos(Math:newVector(-497.02575683594, 543.06060791016, 0.8981568813324)) — Garage haut
–game.game:GetActivePlayer():SetPos(Math:newVector(-519.04034423828, 584.83081054688,-5.6971135139465)) — Garage bas
–game.game:GetActivePlayer():SetPos(Math:newVector( 702.44183349609, 1852.9270019531, 39.771457672119)) — Yatch Club
–game.game:GetActivePlayer():SetPos(Math:newVector( 682.15252685547,-54.542942047119,-20.303739547729)) — Printery
–game.game:GetActivePlayer():SetPos(Math:newVector(-779.16802978516, 526.83142089844,-20.263599395752)) — M-Hotel
–game.game:GetActivePlayer():SetPos(Math:newVector( 261.53601074219, 38.952281951904,-23.370782852173)) — Cathouse ext
–game.game:GetActivePlayer():SetPos(Math:newVector( 261.04589843751, 46.615829467773,-23.705286026001)) — Cathouse int 1
–game.game:GetActivePlayer():SetPos(Math:newVector( 317.72222900391, 53.417900085449,-27.470323562622)) — Cathouse int 2
–game.game:GetActivePlayer():SetPos(Math:newVector(-1543.8682861328,-341.10977172852,-20.335437774658)) — Supermarket
–game.game:GetActivePlayer():SetPos(Math:newVector( 754.80328369141, 293.98419189453,-12.213390350342)) — Bank Door
–game.game:GetActivePlayer():SetPos(Math:newVector( 694.81433105469, 865.16668701172,-11.992577552795)) — Bank Door Load
–game.game:GetActivePlayer():SetPos(Math:newVector( 691.84802246094, 867.99761962891,-11.992649078369)) — Gomin̮̩ JA
–game.game:GetActivePlayer():SetPos(Math:newVector( 1327.2593994141, 1276.2521972656,-0.3068978786468)) — Gomin̮̩ JA
–game.game:GetActivePlayer():SetPos(Math:newVector(-180.25326451213,-304.07998657227,-234.16999816895)) — Italie
[/spoiler:1rl5ova1]
F6 to F9 = For write script
F10 = Divers Save
[spoiler:1rl5ova1]
game.game:SaveGame(1) — FR M2
–game.game:SaveGame(2) — FR JV
–game.game:SaveGame(4) — FR BV
–game.game:SaveGame(6) — FR JA
[/spoiler:1rl5ova1]
F11 = Find coordinate
[spoiler:1rl5ova1]
function loginf(log_text)log_text=”.) “..log_text..”n”
f=assert(io.open(“coords.txt”, “a+”))
f:write(i,log_text)
io.close(f)
end
playerPos=game.game:GetActivePlayer():GetPos()
playerDir=game.game:GetActivePlayer():GetDir()
if i==nil then i=0 end
i=i+1
loginf(playerPos.x..”, “..playerPos.y..”, “..playerPos.z)
loginf(playerDir.x..”, “..playerDir.y..”, “..playerDir.z)
[/spoiler:1rl5ova1]
F12 = Teleportation (I,K,J,L,U,O) & 1ere clic Passe muraille / wall passes 2eme clic return to normal
[spoiler:1rl5ova1]
bindKey (“I”,”v = game.game:GetActivePlayer():GetPos() v.y = v.y + 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“J”,”v = game.game:GetActivePlayer():GetPos() v.x = v.x – 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“K”,”v = game.game:GetActivePlayer():GetPos() v.y = v.y – 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“L”,”v = game.game:GetActivePlayer():GetPos() v.x = v.x + 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“U”,”v = game.game:GetActivePlayer():GetPos() v.z = v.z + 2 game.game:GetActivePlayer():SetPos(v)”)
bindKey (“O”,”v = game.game:GetActivePlayer():GetPos() v.z = v.z – 2 game.game:GetActivePlayer():SetPos(v)”)
if PS==nil then PS=1 game.game:GetActivePlayer():SetPhysState(enums.PhysicsState.DISABLED)else PS=nil game.game:GetActivePlayer():SetPhysState(enums.PhysicsState.DYNAMIC)end
[/spoiler:1rl5ova1]
