Mafia 2
0 of 0

File information

Last updated

Original upload

Created by

Draconio

Uploaded by

MafiaGameVideos

Virus scan

Safe to use

Tags for this mod

About this mod

The possibilities are endless with Mafia II Lua Injector.
Save game anywhere, Teleport, Change weather, Noclip, Invincibility (Godmode), Unlimited money, First Person Driving, Change camera, Hide Hud, Sit Down, Smoke, Shower, etc.

Click on "Mirrors" below to download.

Requirements
Permissions and credits
Mirrors
Mafia 2 Lua Injector



Click on "Mirrors" above to download mod


Description:
The possibilities are endless with Mafia II Lua Injector. 
Save game anywhere, Teleport, Change weather, Noclip, Invincibility (Godmode), Unlimited money,  First Person Driving, Change camera, Hide Hud, Sit Down, Smoke, Shower, etc.

Note: Even though the Mafia2ext Basic Trainer does the same exact thing, this is recommended for users that role play and don't want a script window in the way of their recording. Or for users that simply prefer Lua Injector over the trainer. 

Download:
Hey wiseguys, Mediafire and Mega keep falsely removing this file. If you want to download this file in 2021 and forward then join the Mafia Game discord. The Lua Injector is pinned in the #Mafia2 game channel. Invite link ? https://discord.gg/CFYX8AEkd8

Installation: 
a. Drag the folder called "pc" found in the mod's .zip file to "C:\Program Files (x86)\Steam\steamapps\common\Mafia II".
 - If you're running a non-Steam version, drag it to your "\Mafia II" folder, wherever it may be.
2. Windows will tell you that "This destination already contains a folder named 'pc'."
3. Click "Yes" when prompted to merge the new folder with the existing one.
4. Click "Yes" each time a new folder must be merged.


FAQ


--->Why does my computer say this file is a virus?
The injector is falsely recognized as a virus by some antivirus programs, we invite you to learn more about the type of “trojan” this injector is. Microsoft, along with many other popular antivirus programs brand this injector as a “Trojan:Win32/AgentBypass.gen!G”, which is, according to Microsoft, “a generic detection for Trojans that attempt to inject possibly malicious code into the explorer.exe process”. That’s exactly what this injector does (minus the “malicious code” part) and you can probably imagine why many antivirus programs don’t want a program like that on your computer. The injector that we share with our users is, however, completely safe, and we stand by that statement. The code that it injects is code that is hosted on this very website. They’re Lua scripts that you can open with Notepad and see exactly what they do. Most of them are only a few lines of code that change or alter a game system in a small way. Injecting code into a game is one of the many ways you can make it do crazy stuff, and some of the greatest mods of all time (friends for life) use this tactic to change the way the game works. Unfortunately, it’s impossible for the injector to not be considered malware by automatic bots because it is a game hacking tool.


--->On my screen when I started the injector it says “windows cannot access the specified device, path, or file. you may not have the appropriate permissions to access the item.”
Temporarily disable your antivirus, install the injector and create an exception for it, then re-enable your antivirus program.


--->Google Chrome keeps blocking the download?
That's just chrome’s way of false positiveness of certain downloaded files. Just ignore it, you will be fine.


--->Can't find the download on my computer?
If you’re using an antivirus program, create an exception for the injector, or else it will be quarantined.

----------------------------------------------------------

Lua Scripts

Note: some scripts below might not work due to poor translations and symbols, make sure to remove or replace any "?" symbols.
1. Find the script you like below and copy it. 
2. Go to your userscript folder and find the "rename this to any F1-F12 key".lua file and right-click>Open with> Notepad
3. Paste your script and save the file.  Rename the file to any F1-F12 key.



Godmode
game.game:GetActivePlayer():SetDemigod(true)
game.game:GetActivePlayer():EnableInjury(false)
game.game:GetActivePlayer().invulnerability = true


Change Weather / Time of Day
ply=game.game:GetActivePlayer()
DelayBuffer:Insert(function(l_1_0)
CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,
function(l_2_0)return ply:SetPhysState(enums.PhysicsState.DISABLED)end,
function(l_5_0)return game.gfx:SetWeatherTemplate("DT_RTRclear_day_noon")end,
function(l_14_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end,
function(l_15_0)return ply:SetPhysState(enums.PhysicsState.ENABLE)end})
end,{l_1_0},500,1,false)


Caution: Using winter weathers in the summer time and summer weathers in the winter time is NOT recommended 
since textures will not load. Pick the weather that matches your current game first (1940s Winter or 1950s Summer). 

1940s Winter script: game.sds:ActivateStreamMapLine("free_winter_load")
1950s Summer script: game.sds:ActivateStreamMapLine("free_summer_load")

Winter 1940s (23 options)
1. "DTFreeRideDayWinter"
2. "DTFreeRideDaySnow"
3. "DTFreeRideNightSnow"
4. "DT02part01Railwaystation"
5. "DT02part02JoesFlat"
6. "DT02part03Charlie"
7. "DT02part04Giuseppe"
8. "DT02part05Derek"
9. "DT02NewStart1"
10. "DT02NewStart2"
11. "DT03part01JoesFlat"
12. "DT03part02FreddysBar"
13. "DT03part03MariaAgnelo"
14. "DT03part04PriceOffice"
15. "DT04part01JoesFlat"
16. "DT04part02"
17. "DT05Distillery_inside"
18. "DT05part01JoesFlat"
19. "DT05part02FreddysBar"
20. "DT05part03HarrysGunshop"
21. "DT05part04Distillery"
22. "DT05part05ElGreco"
23. "DT05part06Francesca"}

Summer 1950s (62 options)
1. "DTFreeRideDay"
2. "DT01part01sicily_svit"
3. "DT01part02sicily"
4. "DT06part01"
5. "DT06part02"
6. "DT06part03"
7. "DT07part01fromprison"
8. "DT07part02dereksubquest"
9. "DT07part03prepadrestaurcie"
10. "DT07part04night_bordel"
11. "DT08part01cigarettesriver"
12. "DT08part02cigarettesmill"
13. "DT08part03crazyhorse"
14. "DT08part04subquestwarning"
15. "DT09part1VitosFlat"
16. "DT09part2MalteseFalcone"
17. "DT09part3SlaughterHouseAfter"
18. "DT09part4MalteseFalcone2"
19. "DT10part02Roof"
20. "DT10part02bSUNOFF"
21. "DT10part03Evening"
22. "DT10part03Subquest"
23. "DT11part01"
24. "DT11part02"
25. "DT11part03"
26. "DT11part04"
27. "DT11part05"
28. "DT12_part_all"
29. "DT13part01death"
30. "DT13part02"
31. "DT14part1_6"
32. "DT14part7_10"
33. "DT14part11"
34. "DT15"
35. "DT15_interier"
36. "DT15end"
37. "DT_RTRclear_day_afternoon"
38. "DT_RTRclear_day_early_morn1"
39. "DT_RTRclear_day_early_morn2"
40. "DT_RTRclear_day_evening"
41. "DT_RTRclear_day_late_afternoon"
42. "DT_RTRclear_day_late_even"
43. "DT_RTRclear_day_morning"
44. "DT_RTRclear_day_night"
45. "DT_RTRclear_day_noon"
46. "DT_RTRfoggy_day_afternoon"
47. "DT_RTRfoggy_day_early_morn1"
48. "DT_RTRfoggy_day_evening"
49. "DT_RTRfoggy_day_late_afternoon"
50. "DT_RTRfoggy_day_late_even"
51. "DT_RTRfoggy_day_morning"
52. "DT_RTRfoggy_day_night"
53. "DT_RTRfoggy_day_noon"
54. "DT_RTRrainy_day_afternoon"
55. "DT_RTRrainy_day_early_morn"
56. "DT_RTRrainy_day_evening"
57. "DT_RTRrainy_day_late_afternoon"
58. "DT_RTRrainy_day_late_even"
59. "DT_RTRrainy_day_morning"
60. "DT_RTRrainy_day_night"
61. "DT_RTRrainy_day_noon"
62. "DTFreeRideDayRain"


Weapons
game.game:GetActivePlayer():InventoryAddWeapon(# ,#)

- .38 Revolver: InventoryAddWeapon (2,42)
C96 Pistol: InventoryAddWeapon (3,60)
1911 Semi: InventoryAddWeapon (4,56)
- 1911 Special: InventoryAddWeapon (5,96)
- .357 Magnum: InventoryAddWeapon (6,42)
- Shotgun: InventoryAddWeapon (8,56)
Grease Gun: InventoryAddWeapon (9,120)
MP40: InventoryAddWeapon (10,128)
Thompson 1928: InventoryAddWeapon (11,150)
Thompson M1A1: InventoryAddWeapon (12,120)
.38 SMG: InventoryAddWeapon (13,120)
M1 Garand: InventoryAddWeapon (15,40)
K98 Rifle: InventoryAddWeapon (17,35)
- MK II Grenade: InventoryAddWeapon (20,6)
- Molotov Cocktail: InventoryAddWeapon (21,6)


Weapons In Locations Not Allowed
DelayBuffer:Insert(function(l_1_0)
player, t, f = game.game:GetActivePlayer(), true, false
player:InventoryAddWeapon(20, 6)
player:InventoryAddWeapon(2, 42)
player:InventoryAddWeapon(3, 60)
player:InventoryAddWeapon(4, 56)
player:InventoryAddWeapon(5, 92)
player:InventoryAddWeapon(6, 42)
player:InventoryAddWeapon(7, 6)
player:InventoryAddWeapon(8, 56)
player:InventoryAddWeapon(9, 120)
player:InventoryAddWeapon(10, 128)
player:InventoryAddWeapon(11, 200)
player:InventoryAddWeapon(12, 120)
player:InventoryAddWeapon(13, 120)
player:InventoryAddWeapon(14, 500)
player:InventoryAddWeapon(17, 35)
player:InventoryAddWeapon(15, 40)
player:InventoryAddWeapon(16, 6)
player:InventoryAddWeapon(21, 6)
player:InventoryAddItems(36, 15)
player:SetControlStyleStr( "CS_NORMAL")
— player:SetControlStyleStr( "CS_ENABLESHOOTFROMCAR")
player:SetFightAbility(true, enums.FightAbility.COUNTER)
player:SetFightAbility(true, enums.FightAbility.COMBO)
end,{},1,1,false)


Infinite Money
game.game:GetActivePlayer():InventoryAddMoney(100*1000000)


Remove Hat
game.game:GetActivePlayer():ShowHat(false)
Add Hat
game.game:GetActivePlayer():ShowHat(true)


Smoking animation
ply=game.game:GetActivePlayer()
DelayBuffer:Insert(function(l_1_0)
CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,
function(l_2_0)return ply:AnimPlay("sc_man_smoke_in", false)end,
function(l_3_0)return ply:AnimPlay("sc_man_smoke_stat_a", false)end,
function(l_4_0)return ply:AnimPlay("sc_man_smoke_stat_b", false)end,
function(l_5_0)return ply:AnimPlay("sc_man_smoke_stat_c", false)end,
function(l_6_0)return ply:AnimPlay("sc_man_smoke_stat_d", false)end,
function(l_7_0)return ply:AnimPlay("sc_man_smoke_out", false)end,
function(l_8_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})
end,{l_1_0},500,1,false)


Sit down and Relax animation
ply=game.game:GetActivePlayer()
DelayBuffer:Insert(function(l_1_0)
CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,
function(l_2_0)return ply:SetPhysState(enums.PhysicsState.DISABLED)end,
function(l_3_0)return ply:AnimPlay("sc_sit_bench2_in", false)end,
function(l_4_0)return ply:AnimPlay("sc_sit_bench2_a", false)end,
function(l_5_0)return ply:AnimPlay("sc_sit_bench2_news_in", false)end,
function(l_6_0)return ply:AnimPlay("sc_sit_bench2_news_a", false)end,
function(l_7_0)return ply:AnimPlay("sc_sit_bench2_news_out", false)end,
function(l_8_0)return ply:AnimPlay("sc_sit_bench2_dust_off", false)end,
function(l_9_0)return ply:AnimPlay("sc_sit_bench2_look_L", false)end,
function(l_10_0)return ply:AnimPlay("sc_sit_bench2_nervous", false)end,
function(l_11_0)return ply:AnimPlay("sc_bench2_to_bench3", false)end,
function(l_12_0)return ply:AnimPlay("sc_sit_bench3_stat_a", false)end,
function(l_13_0)return ply:AnimPlay("sc_sit_bench3_dust_off", false)end,
function(l_14_0)return ply:AnimPlay("sc_sit_bench3_look_up", false)end,
function(l_15_0)return ply:AnimPlay("sc_sit_bench3_nervous", false)end,
function(l_16_0)return ply:AnimPlay("sc_sit_bench3_watch", false)end,
function(l_17_0)return ply:AnimPlay("sc_bench3_to_bench4", false)end,
function(l_18_0)return ply:AnimPlay("sc_sit_bench4_stat_a", false)end,
function(l_19_0)return ply:AnimPlay("sc_sit_bench4_nervous", false)end,
function(l_20_0)return ply:AnimPlay("sc_sit_bench4_smoke_in", false)end,
function(l_21_0)return ply:AnimPlay("sc_sit_bench4_smoke_a", false)end,
function(l_22_0)return ply:AnimPlay("sc_sit_bench4_smoke_b", false)end,
function(l_23_0)return ply:AnimPlay("sc_sit_bench4_smoke_c", false)end,
function(l_24_0)return ply:AnimPlay("sc_sit_bench4_smoke_out", false)end,
function(l_25_0)return ply:AnimPlay("sc_sit_bench4_out", false)end,
function(l_26_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end,
function(l_27_0)return ply:SetPhysState(enums.PhysicsState.ENABLE)end})
end,{l_1_0},500,1,false)


Say Hello
ply=game.game:GetActivePlayer()
DelayBuffer:Insert(function(l_1_0)
CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,
function(l_2_0)return ply:AnimPlay("sc_gestA_M_greet_fingers", false)end,
function(l_3_0)return ply:AnimPlay("sc_gestA_M_greet_nod", false)end,
function(l_4_0)return ply:AnimPlay("sc_gestA_M_greet_open_hand", false)end,
function(l_5_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})
end,{l_1_0},500,1,false)


Taxi Call animation
ply=game.game:GetActivePlayer()
DelayBuffer:Insert(function(l_1_0)
CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,
function(l_2_0)return ply:AnimPlay("TAXI_CALL-A", false)end,
function(l_3_0)return ply:AnimPlay("TAXI_CALL-B", false)end,
function(l_8_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})
end,{l_1_0},500,1,false)


Homeless Hotdog Animation
ply=game.game:GetActivePlayer()
DelayBuffer:Insert(function(l_1_0)
CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,
function(l_2_0)return ply:AnimPlay("sc_homeless_6_in", false)end,
function(l_3_0)return ply:AnimPlay("sc_homeless_6_a", false)end,
function(l_4_0)return ply:AnimPlay("sc_homeless_6_b", false)end,
function(l_5_0)return ply:AnimPlay("sc_homeless_6_out", false)end,
function(l_6_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})
end,{l_1_0},500,1,false)


Add Vehicles to Garage
game.garage:CheatAddCar("Delizia_Grandeamerica",true)


Wardrobe
game.wardrobe:AddSuit("VITPRA_COAT",0,false) 0,1,2,3,4,5,6,7,8 or 9 = color d̮̩pend du model
game.wardrobe:RemoveSuit( ? )
game.wardrobe:RemoveAllSuits( ? )
game.wardrobe:AddDLCSuits( ? )
game.wardrobe:SetWanted( ? )
game.wardrobe:ClearAllWanted( ? )


Game
game.gui:IsTutorialModeEnabled( ? )
game.gui:SetGameOverReasonId( ? )
game.gui:GameEnd( ? )
game.gui:GameEndFake( ? )
game.gui:GameEnd( ? )
game.gui:OpenMap(xx) xx = true\false
game.gui:UnlockArtworks(xx) xx = true\false
game.gui:QuestionScreenClose( ? )
game.gui:RunCarcyclopedia(xx) xx = true\false
game.gui:Pause( ? )
game.gui:DeactivateMainMenu( ? )
game.gui:ActivateAPEXResults( ? )
game.gui:ShowSecretCode( ? )
game.gui:GameEndCutsceneSO( ? )


Hud
game.hud:Show(xx) xx = true\false enable or Disable
game.hud:RadarShow(xx) xx = true\false enable or Disable
game.hud:ScoreShow(xx) xx = true\false enable or Disable
game.hud:SubtitlesShow(xx) xx = true\false enable or Disable
game.hud:SpeedometerShow(xx) xx = true\false enable or Disable
game.hud:ActionButtonsShow(xx) xx = true\false enable or Disable Action Buttons Show on display
game.hud:MessageAreaShow(xx) xx = true\false enable or Disable
game.hud:InfoAreaShow(xx) xx = true\false enable or Disable
game.hud:DarkPlaceIndicatorShow( ? ) enable or Disable Montrer la Place noir indicateur
game.hud:MessageShowQuick("iD_texte",#) #=delai en second
game.hud:HelpHintShowQuick("iD_texte",#) #=delai en second
game.hud:DebugHint( ? )
game.hud:HelpHintHide( ? )
game.hud:MoneyShow(xx) xx = true\false
game.hud:RespectShow( ? )
game.hud:FaderFadeOut(250)
game.hud:FaderFadeIn(250)
game.hud:FaderFadeOutEx( ? )
game.hud:FaderFadeInEx( ? )
game.hud:PoliceWantedSet( ? )
game.hud:PoliceRelationSet( ? )
game.hud:TimerShow(xx) xx = true\false enable oor Disable timer on display
game.hud:TimerSet(##) #=delai en second
game.hud:TimerStart() starts the timer counting down
game.hud:TimerStop() disable the timer
game.hud:TimerIsRunning( ? )
game.hud:TimerGetDiffCoef( ? )
game.hud:TimerGetTime( ? )
game.hud:ShowLowHealthFX(xx) xx = true\false initiates the effect that happens when you are hurt & you have low health
game.hud:ForceSubtitlesUp( ? )


Radio
game.radio:SetContent("Empire","all","Empire_07010") ("Empire","all","Empire_02004")
("Classic","all","Classic_07010") ("Classic","all","Classic_02004")
("Delta","all","Delta_07010") ("Delta","all","Delta_02004")
game.radio:ForceDefaultStation("Empire") or ("Classic") or ("Delta") Switch radio station
game.radio:SwitchPlayerStation("Empire")
game.radio:TurnPlayerRadioOn(true)
game.radio:TurnPlayerRadioOff(true)
game.radio:IsPlayerRadioOn()
game.radio:FadePlayerRadioOut(##) ##=delai en miliseconds Fade out the radio
game.radio:SetDialogMode( ? )
game.radio:AdvanceTime() Switches to the next song


Traffic
game.traffic:SwitchGenerators(xx) xx = true\false
game.traffic:Populate(##) ##=0..100
game.traffic:PoliceReinforcements(##) ##=0..100
game.traffic:OpenSeason(50) or (140)
game.traffic:CloseSeason()
game.traffic:SetPolice(xx) xx = true\false sets whether or not police car traffic should exit
game.traffic:DespawnPolice(xx) xx = true\false
game.traffic:SwitchRoad(Math:newVector(xx,yy,zz),false) false bloc circulation true debloc
game.traffic:SwitchFarAmbient( ? )
game.traffic:SetNumCars(##) ##=0..100
game.traffic:SetNumStaticCars(##) ##=0..100
game.traffic:SetNoAmbientRadius( ? )
game.traffic:SetFarAmbientRadius( ? )
game.traffic:PathFindEnableMiddlePoint( ? )
game.traffic:PathFindReset( ? )


Shop Menu script
game.shop:OpenShopMenu( ? )
game.shop:OpenShopMenuOnFrame( ? )
game.shop:CloseOpenedMenu( ? )
game.shop:HideModelInItem( ? )
game.shop:IsShopActivated( ? )
game.shop:GetActiveShopBaseFrameName( ? )
game.shop:SetFlagInActiveShop( ? )
game.shop:GetFlagInActiveShop( ? )
game.shop:SetActiveShopState( ? )
game.shop:GetActiveShopState( ? )
game.shop:SetActiveShopExplored( ? )
game.shop:SetShopExplored( ? )
game.shop:SetAllShopExplored() Display all shops on the map
game.shop:SetMenuItemEnable( ? )
game.shop:SetMenuItemVisible( ? )
game.shop:SetMenuItemPrice( ? )
game.shop:ShowItem( ? )
game.shop:SetPlayerMoneyVisible( ? )
game.shop:SetPlayerWantedStatusVisible( ? )
game.shop:SetCarWantedStatusVisible( ? )
game.shop:SetTuningLevel( ? )
game.shop:SetActiveCar( ? )
game.shop:IsEntityOwnedByShop( ? )
game.shop:UTTShopStart( ? )
game.shop:UTTShopEnd( ? )
game.shop:UTTShopPurchase( ? )
game.shop:UTTShopCrime( ? )
game.shop:UTTShopMoneyRobbed( ? )


Relationships
ai.relationships:SetRelationship(enums.AI_SIDE.NEUTRAL, enums.AI_TYPE.SELLER, enums.AI_SIDE.PLAYER, enums.AI_TYPE.FRIEND, 10)
(enums.AI_SIDE.NEUTRAL, enums.AI_TYPE.SELLER, enums.AI_SIDE.PLAYER, enums.AI_TYPE.FRIEND, 0)
ai.relationships:GetRelationship( ? )
ai.relationships:SetPlayerAggressivity( ? )
ai.relationships:CreateGangGroup( ? )
ai.relationships:DestroyGangGroup( ? )
ai.relationships:AddGroupMember( ? )
ai.relationships:RemoveGroupMember( ? )
ai.relationships:IsPlayerAttacked( ? )
ai.relationships:IsPlayerAttackedRanged( ? )
ai.relationships:ForgetPlayer( ? )
ai.relationships:IgnorePlayer( ? )
ai.relationships:ForgetHuman( ? )


Police
ai.police:CreateOffence(38,player:GetGuid())
ai.police:DeactivateOffence( ? )
ai.police:DeactivateAllOffences( ? )
ai.police:IgnorePerson(game.game:GetActivePlayer():GetGuid(),xx) xx = true\false
ai.police:IgnoreRecognition( ? )
ai.police:SetDensity(0)
ai.police:GetDensity( ? )
ai.police:SetDensityMax(0)
ai.police:SetKnownPerson( ? )
ai.police:IsPersonKnown( ? )
ai.police:SetKnownCar( ? )
ai.police:ClearKnownCars() Removes wanted license plate from all vehicles, must be clear of police radar in order to clear the one you are driving
ai.police:IsCarKnown( ? )
ai.police:HasActiveOffence( ? )
ai.police:IsInSearchMode( ? )
ai.police:StopCloseCombat( ? )
ai.police:StopCarSearch( ? )
ai.police:TurnPoliceTutorial( ? )
ai.police:SolveOffence( ? )
ai.police:SetRoadBlockStatus( ? )
ai.police:GetRoadBlockStatus( ? )
ai.police:CreateRoadBlockSpeech( ? )
ai.police:NabonzujPlayera( ? )
ai.police:SetActionDone( ? )
ai.police:GetNumberOfPolicemenInAction( ? )
ai.police:GetFineValue( ? )
ai.police:PoliceUTTWriteSimple( ? )


Garage Manager
game.garage:GetMaxGaragePlaces()
game.garage:SetMaxGaragePlaces(##)
game.garage:GetPlayersCar() a voir avec game.entitywrapper:GetEntityByGUID(game.garage:GetPlayersCar())
game.garage:HasCar( ? )
game.garage:AddCar( ? )
game.garage:RemoveCar( ? )
game.garage:AbandonCar( ? )
game.garage:KeepSpawnedOnlyPlayersCar( ? )
game.garage:DespawnAll()
game.garage:CheatAddCar("name_Car",true)
game.garage:CheatAddCarColor( ? )
game.garage:CheatAddCars(true) add all Car
game.garage:CheatAbandonCars( ? )


Car Boost (Press Q)
bindKey ("Q","v = game.game:GetActivePlayer():GetOwner():SetSpeed(150)")


Car
game.game:GetActivePlayer():GetOwner():SetSpeed(###) ###=0..100
game.game:GetActivePlayer():GetOwner():GetSpeed( ? )
game.game:GetActivePlayer():GetOwner():GetSpeedFloat( ? )
game.game:GetActivePlayer():GetOwner():GetSpeedLimiter( ? )
game.game:GetActivePlayer():GetOwner():SetSpeedLimiter( ? )
game.game:GetActivePlayer():GetOwner():SetSpeedLimiterSpeed( ? )
game.game:GetActivePlayer():GetOwner():GetSpeedLimiterSpeed( ? )
game.game:GetActivePlayer():GetOwner():SetMaxAISpeed( ? )
game.game:GetActivePlayer():GetOwner():GetDamage( ? )
game.game:GetActivePlayer():GetOwner():GetMotorDamage( ? )
game.game:GetActivePlayer():GetOwner():SetMotorDamage(##) ## = 0/.../100
game.game:GetActivePlayer():GetOwner():Repair(xx) xx = true\false
game.game:GetActivePlayer():GetOwner():RepairAndClear(xx) xx = true\false
game.game:GetActivePlayer():GetOwner():GetRepairPrice( ? )
game.game:GetActivePlayer():GetOwner():SetCarDamage( ? )
game.game:GetActivePlayer():GetOwner():GetActualTuningTable( ? )
game.game:GetActivePlayer():GetOwner():SetActualTuningTable(#) #=0/1/2/3
game.game:GetActivePlayer():GetOwner():HasTuningTable( ? )
game.game:GetActivePlayer():GetOwner():HasTuningFlag( ? )
game.game:GetActivePlayer():GetOwner():HasTableFlag( ? )
game.game:GetActivePlayer():GetOwner():HasRacingFlag( ? )
game.game:GetActivePlayer():GetOwner():GetPrice( ? )
game.game:GetActivePlayer():GetOwner():AddSpendedMoney( ? )
game.game:GetActivePlayer():GetOwner():Lock() voiture ne peut pas bouger
game.game:GetActivePlayer():GetOwner():Unlock()
game.game:GetActivePlayer():GetOwner():LockEntryPoints() Verrouiller les points d'entr̮̩e
game.game:GetActivePlayer():GetOwner():UnlockEntryPoints() Deverrouiller les points d'entr̮̩e
game.game:GetActivePlayer():GetOwner():LockPlayerEntryPoints()
game.game:GetActivePlayer():GetOwner():UnlockPlayerEntryPoints()
game.game:GetActivePlayer():GetOwner():FakePlayerCar( ? )
game.game:GetActivePlayer():GetOwner():OpenHood()
game.game:GetActivePlayer():GetOwner():CloseHood()
game.game:GetActivePlayer():GetOwner():OpenTrunk()
game.game:GetActivePlayer():GetOwner():CloseTrunk()
game.game:GetActivePlayer():GetOwner():LockTrunks()
game.game:GetActivePlayer():GetOwner():UnlockTrunks()
game.game:GetActivePlayer():GetOwner():OpenBusDoors( ? )
game.game:GetActivePlayer():GetOwner():SetDoorFree( ? )
game.game:GetActivePlayer():GetOwner():SetDirty(##) ##=0/0.1/..../0.9/1
game.game:GetActivePlayer():GetOwner():GetDirty( ? )
game.game:GetActivePlayer():GetOwner():HideGore( ? )
game.game:GetActivePlayer():GetOwner():HideDecals( ? )
game.game:GetActivePlayer():GetOwner():SetColor(##,##) ##=1...40
game.game:GetActivePlayer():GetOwner():GetColor( ? )
game.game:GetActivePlayer():GetOwner():GetActualFuel()
game.game:GetActivePlayer():GetOwner():SetActualFuel(##) ##=0...100
game.game:GetActivePlayer():GetOwner():GetFuelTankCapacity( ? )
game.game:GetActivePlayer():GetOwner():SetEngineOn(xx,yy) xx = true\false yy = true\false
game.game:GetActivePlayer():GetOwner():Spawn( ? )
game.game:GetActivePlayer():GetOwner():SetHandbrake( ? )
game.game:GetActivePlayer():GetOwner():SetBrake( ? )
game.game:GetActivePlayer():GetOwner():SetPower( ? )
game.game:GetActivePlayer():GetOwner():SetAddSteer(##) ##=-100...0...100
game.game:GetActivePlayer():GetOwner():GetEngineRotations( ? )
game.game:GetActivePlayer():GetOwner():CreateController("car_escaper") ("car_hunter") ("car_police") ("car_scripted")
game.game:GetActivePlayer():GetOwner():DestroyController()
game.game:GetActivePlayer():GetOwner():InitializeAIParams(enums.CarAIProfile.PIRATE,0) 0,1/../4 SLOW enums.CarAIProfile.AGGRESSIVE NORMAL
game.game:GetActivePlayer():GetOwner():HuntCar(game.entitywrapper:GetEntityByName("name_car_entity"))
game.game:GetActivePlayer():GetOwner():HuntMode(enums.CarHuntMode.ALONG)
game.game:GetActivePlayer():GetOwner():HuntPause( ? )
game.game:GetActivePlayer():GetOwner():MoveTo(Math:newVector(xx,yy,zz),START) (Math:newVector(xx,yy,zz),enums.MoveToUTurn.NOUTURN,enums.MoveToPass.BRAKE)enums.MoveToPass.PASS)enums.MoveToPass.STOP)
game.game:GetActivePlayer():GetOwner():EnableAccidentReaction( ? )
game.game:GetActivePlayer():GetOwner():FollowTrail( ? )
game.game:GetActivePlayer():GetOwner():FollowTrailReverse( ? )
game.game:GetActivePlayer():GetOwner():EscapeMode()
game.game:GetActivePlayer():GetOwner():Wander( ? )
game.game:GetActivePlayer():GetOwner():WaitForEntity(Joe,30,60)
game.game:GetActivePlayer():GetOwner():CancelWaitForEntity( ? )
game.game:GetActivePlayer():GetOwner():GetWheelPos( ? )
game.game:GetActivePlayer():GetOwner():SetWheel( ? )
game.game:GetActivePlayer():GetOwner():GetWheel( ? )
game.game:GetActivePlayer():GetOwner():SetTyre( ? )
game.game:GetActivePlayer():GetOwner():RegisterEvents(true)
game.game:GetActivePlayer():GetOwner():GetPointW( ? ) Voir si il y a un raport avec Waypoint
game.game:GetActivePlayer():GetOwner():GetSeatAIPosW( ? ) Voir si il y a un raport avec Waypoint
game.game:GetActivePlayer():GetOwner():GetProhibitGarage( ? )
game.game:GetActivePlayer():GetOwner():SetProhibitGarage( ? )
game.game:GetActivePlayer():GetOwner():Explode() Boum
game.game:GetActivePlayer():GetOwner():FindSeatForHuman( ? )
game.game:GetActivePlayer():GetOwner():SetPainting("Model_name") HotRod-TEXT-1,HotRod-TEXT-2,HotRod-TEXT-3,HotRod-cucky a stin2,HotRod-cucky a stin4,HotRod-jehly2,HotRod-plameny3,HotRod-plameny5
game.game:GetActivePlayer():GetOwner():GetPainting( ? )
game.game:GetActivePlayer():GetOwner():SetResistance(##) ## = 0/.../100
game.game:GetActivePlayer():GetOwner():GetResistance( ? )
game.game:GetActivePlayer():GetOwner():DisableExplosion(xx) xx = true\false Makes a car so that it may or may not be capable of exploding
game.game:GetActivePlayer():GetOwner():IsDisableExplosion( ? )
game.game:GetActivePlayer():GetOwner():SetBeaconLightOn(xx) xx = true\false
game.game:GetActivePlayer():GetOwner():SetSirenOn(xx) xx = true\false
game.game:GetActivePlayer():GetOwner():SetHornOn(xx) xx = true\false
game.game:GetActivePlayer():GetOwner():SetRadioDefaultState("name_radio",false)
game.game:GetActivePlayer():GetOwner():SetSPZText("text",true)
game.game:GetActivePlayer():GetOwner():GetSPZText( ? )
game.game:GetActivePlayer():GetOwner():GetCarProblem(#) # = 0/..../8
game.game:GetActivePlayer():GetOwner():FixCarPos( ? )
game.game:GetActivePlayer():GetOwner():IsCarPosFixed( ? )
game.game:GetActivePlayer():GetOwner():SetOffPart( ? )
game.game:GetActivePlayer():GetOwner():SetOnPart( ? )
game.game:GetActivePlayer():GetOwner():GetPartCount( ? )
game.game:GetActivePlayer():GetOwner():GetPartName( ? )
game.game:GetActivePlayer():GetOwner():GetPartByName( ? )
game.game:GetActivePlayer():GetOwner():SetWheelsProtected(xx) xx = true\false
game.game:GetActivePlayer():GetOwner():IsWheelsProtected( ? )
game.game:GetActivePlayer():GetOwner():OpenSeatWindowOpenSeatWindow(1,xx,0) 1,2,3 or 4 xx = true\false
game.game:GetActivePlayer():GetOwner():IsSeatWindowOpen( ? )
game.game:GetActivePlayer():GetOwner():GetActualPlayerSeatIndex( ? )
game.game:GetActivePlayer():GetOwner():ReflectorsForceOff( ? )
game.game:GetActivePlayer():GetOwner():GetCarTableId( ? )
game.game:GetActivePlayer():GetOwner():DisableFreeTrunk( ? )
game.game:GetActivePlayer():GetOwner():PlayAnim( ? )
game.game:GetActivePlayer():GetOwner():StopAnim( ? )
game.game:GetActivePlayer():GetOwner():RevUpEffectStart( ? )
game.game:GetActivePlayer():GetOwner():RevUpEffectStop( ? )
game.game:GetActivePlayer():GetOwner():FadeDirtyEffectStart( ? )
game.game:GetActivePlayer():GetOwner():FadeDirtyEffectStop( ? )
game.game:GetActivePlayer():GetOwner():FadeSnowEffectStart( ? )
game.game:GetActivePlayer():GetOwner():FadeSnowEffectStop( ? )
game.game:GetActivePlayer():GetOwner():FadeFuelEffectStart( ? )
game.game:GetActivePlayer():GetOwner():FadeFuelEffectStop( ? )
game.game:GetActivePlayer():GetOwner():SPZAdjustingEffectStart( ? )
game.game:GetActivePlayer():GetOwner():SPZAdjustingEffectSet( ? )
game.game:GetActivePlayer():GetOwner():SPZAdjustingEffectStop( ? )
game.game:GetActivePlayer():GetOwner():DisableObstacleByPart( ? )
game.game:GetActivePlayer():GetOwner():SetDespawnImmunity( ? )
game.game:GetActivePlayer():GetOwner():MarkForSale( ? )
game.game:GetActivePlayer():GetOwner():IsMarkedForSale( ? )
game.game:GetActivePlayer():GetOwner():UTTCarRepair( ? )
game.game:GetActivePlayer():GetOwner():UTTCarUpgrade( ? )
game.game:GetActivePlayer():GetOwner():UTTCarWheelChange( ? )
game.game:GetActivePlayer():GetOwner():UTTCarPaint( ? )
game.game:GetActivePlayer():GetOwner():UTTCarAirbrush( ? )
game.game:GetActivePlayer():GetOwner():UTTCarPlateChange( ? )
game.game:GetActivePlayer():GetOwner():LinkToEntity( ? )
game.game:GetActivePlayer():GetOwner():UnlinkFromEntity( ? )


Camera 
game.cameramanager:GetPlayerMainCamera(0) (int index?)
game.cameramanager:GetPlayerSmallCamera( ? )
game.cameramanager:GetPlayerMainCamera(0):LockSetActor(game.game:GetActivePlayer(),2)
game.cameramanager:GetPlayerMainCamera(0):LockLookAt( ? )
game.cameramanager:GetPlayerMainCamera(0):LockLookAtEntity(J,p,0.10000001192092896) J = game.entitywrapper: GetEntityByName ("Joe") p = game.game: GetActivePlayer ()
game.cameramanager:GetPlayerMainCamera(0):LockDialog( ? )
game.cameramanager:GetPlayerMainCamera(0):Unlock(game.game:GetActivePlayer())
game.cameramanager:GetPlayerMainCamera(0):SimpleShake(1,5,10) (float speed, float strength, float duration)
game.cameramanager:GetPlayerMainCamera(0):SetCameraRotation(Player:GetPos() + Player:GetDir() * 10)
Vito:SetControlStyle(enums.ControlStyle.LOCKED)
cam = game.cameramanager:GetPlayerMainCamera(0)
cam:LockControl(true, false)
cam:SetCameraRotation(Vito:GetPos() + Vito:GetDir() * 10)
game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),true)game.game:GetActivePlayer():ShowModel(false) in car
game.cameramanager:GetPlayerMainCamera(0):EnableFPV(game.game:GetActivePlayer(),false)game.game:GetActivePlayer():ShowModel(true) out car
game.cameramanager:GetPlayerMainCamera(0):LockControl( ? )
game.cameramanager:GetPlayerMainCamera(0):SetSensitivityMultiplier(2) (float multiplier)


Speech
game.speech:LoadScriptDistrict("joe") ???
game.speech:UnLoadScriptDistrict( ? )
game.speech:LoadDistrictVarious("APDGangBlack")("APDGangIrish")("APDGangItalian")("APDGangGreaser")
("APDCivMale")("APDCivFemale")("APDCivBlack")("APDCivChinese")("APDCivIrish")("APDCivItalian")
game.speech:UnLoadDistrictVarious("APDGangBlack")("APDGangIrish")("APDGangItalian")("APDGangGreaser")
("APDCivMale")("APDCivFemale")("APDCivBlack")("APDCivChinese")("APDCivIrish")("APDCivItalian")
game.speech:IsDistrictVariousLoaded("district") ???
game.speech:LoadStage(60) ???


Teleport
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

CommandBuffer Script
CommandBuffer:Insert(l_5_0,{function(l_1_0) end})
CommandBuffer:Remove(name_fonction) ???
CommandBuffer:IsInBuffer( ? )
CommandBuffer:RemoveGroup( ? )
CommandBuffer:SwitchDebugging( ? )
 
 
DelayBuffer Script
DelayBuffer:Insert(function(l_1_0) end,{l_1_0},100,1,false)
DelayBuffer:Remove(function(l_1_0) end,{l_1_0},100,1,false) ???
DelayBuffer:IsInBuffer( ? )
DelayBuffer:SwitchDebugging( ? )



There are way more scripts that I have forgotten to add. If you find something I forgot, comment on the Posts tab and I'll add it to the description above.

Scripts by eXistenZ34 and zahar999
Compiled & Uploaded by Mafia Game Videos