Global
Global commands available simply using the Game prefix without needing to call a specific game system. For game system related commands, see Systems.

Game.AddDebugFact(fact)

Adds a fact with the specified name to the game's FactDB. By default, this fact will be set to 1.
1
Game.AddDebugFact("factname", value)
Copied!

Game.AddExp(stringType, stringVal)

Add experience in a field. Use the dictionary stringType to use.
1
Game.AddExp("Strength", 12345)
Copied!

Game.AddItems(type, amount)

WIP

Game.AddPlayerStatPoolBonus(statPoolTypeString, bonusValueString, persistance, percentage)

WIP

Game.AddRecord(tweak)

WIP

Game.AddStatModifier(type, value, modType)

1
Game.AddStatModifier("CritChance", 100, "Additive")
Copied!
The first argument is the enum value from gamedataStatType, the second argument is a float value to apply to the stat (you can use negatives to negate or remove a buff you may have given yourself prior, like say to remove that above +100% crit chance, use -100). The third argument is from gameStatModifierType and can be Additive, AdditiveMultiplier or Multiplier.
Note: This isn't just used for the player, but for entities in general, so many values won't have any noticeable effect when applied to the player.

Game.AddToInventory(itemString, quantityString)

Add the itemString, by the number specified in quantityString.
For a list of items, you have
Example:
1
Game.AddToInventory("Items.PowerfulFabricEnhancer04", 1)
2
Game.AddToInventory("Items.SimpleWeaponMod08", 1)
Copied!

Game.AnimationSystemSetForcedVisibleFalseTest()

WIP

Game.AnimationSystemSetForcedVisibleTrueTest()

WIP

Game.AnimWrapperWeightSetterTest(keyStr, valueStr)

WIP

Game.APE(perk, level)

WIP

Game.ApplyDecayData(statPoolTypeString, rangeBeginString, rangeEndString, startDelayString, valuePerSecString, delayOnChangeString)

WIP

Game.ApplyDecayModifier(statPoolTypeString, statPoolModName)

WIP

Game.ApplyEffectOnNPC(effect)

Applies specified status effect to an NPC that the player is looking at within a reasonable range. Currently only Base Status Effects have been documented. Refer to the list of these effects in the Base Status Effects page.
1
Game.ApplyEffectOnNPC("BaseStatusEffect.Bleeding")
Copied!
The desired effect must be passed as a string with it's effect type prepended. The example on display applies 'Bleeding' which is a 'BaseStatusEffect' effect type.

Game.ApplyEffectOnPlayer(effect)

Applies specified status effect to the player. Currently only Base Status Effects have been documented. Refer to the list of these effects in the Base Status Effects page.
1
Game.ApplyEffectOnPlayer("BaseStatusEffect.Burning")
Copied!
The desired effect must be passed as a string with it's effect type prepended. The example on display applies 'Burning' which is a 'BaseStatusEffect' effect type.

Game.ApplyGLP(value)

WIP

Game.ApplyRegenData(statPoolTypeString, rangeBeginString, rangeEndString, startDelayString, valuePerSecString, delayOnChangeString)

WIP

Game.ApplyRegenModifier(statPoolTypeString, statPoolModName)

WIP

Game.awacstest()

WIP

Game.BlockSwitchSeats(block)

WIP

Game.BreachAllNetworks(radius)

WIP

Game.BreachNearestAP()

WIP

Game.BreakEffectLoop()

WIP

Game.BuyAtt(stringType)

WIP

Game.BuyItem(item)

WIP

Game.BuyPerk(pString)

WIP

Game.CGLP()

WIP

Game.ChangeArea()

No effect currently.

Game.ChangeStatPoolVal(type, value, subtract, percentage)

WIP

Game.ChangeZoneIndicatorDanger()

Add AREA:HOSTILE indicator to the minimap
1
Game.ChangeZoneIndicatorDanger()
Copied!

Game.ChangeZoneIndicatorPublic()

Remove any AREA indicator
1
Game.ChangeZoneIndicatorPublic()
Copied!

Game.ChangeZoneIndicatorRestricted()

WIP

Game.ChangeZoneIndicatorSafe()

Add AREA:SAFE indicator to the minimap

Game.CheatExposeNPCQuickHacks()

WIP

Game.CheckFactValue(fact)

Checks the value of a specified fact within the FactDB. Returns 0 if there is no fact found with the given name. A database of facts can be found here.
1
Game.CheckDebugFact("q000_vr_tutorial_skipped")
Copied!
Returns
1
Fact testfact: 1
Copied!

Game.ClearEquipment()

Make the char naked and remove cyberwear
1
Game.ClearEquipment()
Copied!

Game.CLS_off()

WIP

Game.CLS_on()

WIP

Game.CLS_reset()

WIP

Game.CreateDebugStimuli(stimType, activeStim)

WIP

Game.cset()

WIP

Game.DamagePlayer(TEMP_dmg, dmgType, percentage)

WIP

Game.DbgBraindanceIsActive()

Returns whether or not the player is in an active braindance sequence.
1
Game.DbgBraindanceIsActive()
Copied!
Returns
1
Braindance active: FALSE
Copied!

Game.DbgBraindanceIsPaused()

WIP

Game.DbgBraindancePlayDirection()

WIP

Game.DbgBraindancePlaySpeed()

WIP

Game.DbgBraindanceProgress()

WIP

Game.DbgBraindanceSetPlayDirection(direction)

WIP

Game.DbgBraindanceSetPlaySpeed(speed)

WIP

Game.DbgBraindanceTimeInSec()

WIP

Game.DbgDvs(shouldDebug)

WIP

Game.DD(shouldDebug)

WIP

Game.DebugDevices(shouldDebug)

WIP

Game.DebugNPC(durationStr)

WIP

Game.DebugNPCs(durationStr, radiusStr, moveWithPlayerStr)

WIP

Game.DebugReward(rewardDef)

WIP

Game.DebugSS(val)

WIP

Game.debug_AddLog()

WIP

Game.Debug_WeaponSpread(useCircularDistribution, useEvenDistribution, rowCount, projectilesPerShot)

WIP

Game.Debug_WeaponSpread_RandomCircular()

WIP

Game.Debug_WeaponSpread_RandomGrid()

WIP

Game.DecreaseGlobalTimeDilation()

WIP

Game.DecreasePlayerTimeDilation()

WIP

Game.DeleteEquipmentSet(setName)

WIP

Game.DemolitionUp()

Increase Annilation level by 1

Game.DespawnFlathead()

Despawns a previously spawned flathead bot. The bot itself is non-functional.

Game.DespawnPlayerVehicle(vehicleID)

WIP

Game.EffectorOff(record)

WIP

Game.EffectorOn(record)

WIP

Game.EffectorOnW(record)

WIP

Game.EnableAllPlayerVehicles()

Grants the player all ownable vehicles. This does not complete associated car purchase quests.

Game.EnableFinishers(enable)

WIP

Game.EnableQuickHacks(shouldEnable)

WIP

Game.EnableVehicleToggleSummonMode(value)

WIP

Game.EnterBD()

WIP

Game.EquipItem(itemTDBIDStr)

WIP

Game.EquipItemOnPlayer(item, slot)

Equips an item on the player in specified slot.

Game.EquipItemToHand(itemTDBIDStr)

WIP

Game.FastTravel_f(magicFloat)

WIP

Game.ForcedNPCDeath()

WIP

Game.ForceOutline(isGreen, opacity)

WIP

Game.gebs()

WIP

Game.GetAllPerks()

WIP

Game.GetJournalManager()

WIP

Game.GetTransactionSystem()

Return a regular handle. Can be used with player functions such as GiveItem
1
player = Game.GetPlayer()
2
ts = Game.GetTransactionSystem()
3
4
tid = TweakDBID.new("Items.money")
5
itemid = ItemID.new(tid)
6
7
result = ts:GiveItem(player, itemid, 100000)
8
if result then
9
print("We added " .. tostring(itemid) .. " to the inventory!")
10
else
11
print("Failed to add " .. tostring(itemid))
12
end
Copied!

Game.GetItemInSlot(slotString)

WIP

Game.GetPlayer()

Used to get a strong handle on the player object and then using player functions.
1
Game.GetPlayer()
Copied!
Returns
A strong handle on the player object. Can be used with CreateHandle, described here, like the following:
1
player = CreateHandle(Game.GetPlayer())
2
print(player.GetClassName())
3
Cname{ hash: 14897567717734570886 - 'PlayerPuppet' }
Copied!

Game.GetQuickhacks()

WIP

Game.GiveDevPoints(stringType, stringVal)

Give Attribute (stringType == "Attribute") or Perk (stringType == "Primary") points.
stringType "Secondary" exists, but is unknown.
1
Game.GiveDevPoints("Attribute", 5) -- Gives 5 attribute points
2
Game.GiveDevPoints("Primary", 2) -- Gives 2 perk points
3
Game.GiveDevPoints("Secondary, 1) -- This command succeeds, effect unknown
Copied!

Game.GiveItem(itemName, amountStr)

WIP

Game.God1()

WIP

Game.God2()

WIP

Game.GodClearAll()

WIP

Game.Heal(valStr, isScalarStr)

WIP

Game.HealAll(radiusStr)

WIP

Game.Hotkeys()

WIP

Game.HotkeysNOW()

WIP

Game.IDDQD(iamstiffcorpoguy)

WIP

Game.IncreaseGlobalTimeDilation()

WIP

Game.IncreasePlayerTimeDilation()

WIP

Game.InfiniteStamina(enable)

Pass true or false for infinite stamina.

Game.InstallProgram(part, slot)

WIP

Game.Kill()

WIP

Game.KillAll(radiusStr)

WIP

Game.KillEffect()

WIP

Game.LeaveBD()

WIP

Game.LevelUp()

WIP

Game.LoadEquipmentSet(setName)

WIP

Game.LogGender()

1
Game.LogGender()
Copied!
Returns
1
*** Player Gender: Male
Copied!

Game.LogPlayerPositionAndName()

1
Game.LogPlayerPositionAndName()
Copied!
Returns
1
-2382.430176 -610.183594 12.673874 1.000000
Copied!

Game.LookAtAdd(xStr, yStr, zStr, part)

WIP

Game.LookAtAddPlayerCameraSlot()

WIP

Game.LookAtAddPlayerCameraSlotWithHands()

WIP

Game.LookAtAddStaticLeftHand()

WIP

Game.LookAtAddWithOffset(xStr, yStr, zStr)

WIP

Game.ModifyDifficulty(stringDifficultyLevel)

WIP

Game.ModifyNPCStatPoolValue(statPoolTypeString, value, percentage)

WIP

Game.ModifyPlayerStatPoolValue(statPoolTypeString, value, percentage)

WIP

Game.ModStatPlayer(TEMP_stat, TEMP_val)

WIP

Game.ModStatTarget(TEMP_stat, TEMP_val)

WIP

Game.mwtest()

WIP

Game.NetrunnerTesting()

WIP

Game.Noslowmo()

WIP

Game.OP(modeStr)

WIP

Game.ParameterTest1(param1)

WIP

Game.ParameterTest5(param1, param2, param3, param4, param5)

WIP

Game.pindatatest()

1
Game.pindatatest()
Copied!
Return test 5.
1
test 5
Copied!

Game.PlayerSD()

WIP

Game.PlayRumble(presetName)

WIP

Game.PreviewDamage(value)

WIP

Game.PrevSys_active()

Gives the player one level of police heat.

Game.PrevSys_off()

Turns off the crime prevention system aka the cops.

Game.PrevSys_on()

Turns on the crime prevention system.

Game.PrevSys_safe()

WIP

Game.PrintAttributes()

Dump all attributes such as :
  • Armor
  • Stats by categories

Game.PrintCodex()

Not working

Game.PrintDPS()

WIP

Game.PrintEffectsOnNPC()

WIP

Game.PrintEffectsOnPlayer()

WIP

Game.PrintEquipment()

Returns a list of all equipment currently equipped.
1
Game.PrintEquipment()
Copied!
Returns
1
Player Equipments:
2
Player Equipment #0
3
Weapon
4
Slot 0: w_revolver_malorian_overture
5
Slot 1: w_handgun_malorian_silverhand
6
Slot 2: w_rifle_assault_militech_ajax -- ACTIVE
7
WeaponHeavy
8
Slot 0: EMPTY -- ACTIVE
9
WeaponWheel
10
Slot 0: w_revolver_malorian_overture
11
Slot 1: w_handgun_malorian_silverhand
12
Slot 2: w_rifle_assault_militech_ajax
13
Slot 3: mantis_blade -- ACTIVE
14
QuickWheel
15
Slot 0: frag -- ACTIVE
16
Slot 1:
17
CyberwareWheel
18
Slot 0: EMPTY -- ACTIVE
19
Slot 1: EMPTY
20
Slot 2: EMPTY
21
BaseFists
22
Slot 0: w_melee_fists -- ACTIVE
23
Head
24
Slot 0: EMPTY -- ACTIVE
25
Face
26
Slot 0: EMPTY -- ACTIVE
27
OuterChest
28
Slot 0: EMPTY -- ACTIVE
29
InnerChest
30
Slot 0: EMPTY -- ACTIVE
31
UnderwearTop
32
Slot 0: EMPTY -- ACTIVE
33
UnderwearBottom
34
Slot 0: EMPTY -- ACTIVE
35
Legs
36
Slot 0: EMPTY -- ACTIVE
37
Feet
38
Slot 0: EMPTY -- ACTIVE
39
Consumable
40
Slot 0: -- ACTIVE
41
Slot 1: EMPTY
42
Slot 2: EMPTY
43
Splinter
44
Slot 0: EMPTY -- ACTIVE
45
PersonalLink
46
Slot 0: EMPTY -- ACTIVE
47
QuickSlot
48
Slot 0: frag -- ACTIVE
49
Slot 1: EMPTY
50
Slot 2: EMPTY
51
Gadget
52
Slot 0: EMPTY -- ACTIVE
53
EyesCW
54
Slot 0: Kiroshi Optics -- ACTIVE
55
FrontalCortexCW
56
Slot 0: Limbic System Enhancement -- ACTIVE
57
Slot 1:
58
Slot 2:
59
MusculoSkeletalSystemCW
60
Slot 0: -- ACTIVE
61
Slot 1:
62
NervousSystemCW
63
Slot 0: SynapticAccelerator -- ACTIVE
64
Slot 1:
65
CardiovascularSystemCW
66
Slot 0: -- ACTIVE
67
Slot 1:
68
Slot 2: TyrosineInjector
69
ImmuneSystemCW
70
Slot 0: -- ACTIVE
71
Slot 1:
72
IntegumentarySystemCW
73
Slot 0: EMPTY -- ACTIVE
74
Slot 1:
75
Slot 2: EMPTY
76
HandsCW
77
Slot 0: -- ACTIVE
78
Slot 1:
79
ArmsCW
80
Slot 0: mantis_blade -- ACTIVE
81
LegsCW
82
Slot 0: BoostedTendons -- ACTIVE
83
AbilityCW
84
Slot 0: EMPTY -- ACTIVE
85
Slot 1: EMPTY
86
Slot 2: EMPTY
87
Slot 3: EMPTY
88
Slot 4: EMPTY
89
Slot 5: EMPTY
90
Slot 6: EMPTY
91
Slot 7: EMPTY
92
RightArm
93
Slot 0: -- ACTIVE
94
SystemReplacementCW
95
Slot 0: -- ACTIVE
96
Outfit
97
Slot 0: EMPTY -- ACTIVE
98
VDefaultHandgun
99
Slot 0: w_handgun_constitutional_unity -- ACTIVE
100
SilverhandArm
101
Slot 0: EMPTY -- ACTIVE
102
PlayterTattoo
103
Slot 0: EMPTY -- ACTIVE
Copied!

Game.PrintGodModeSources()

WIP

Game.PrintHealth()

1
Game.PrintHealth()
Copied!
Returns
1
StatPool: Health
2
Stat %: 100.000000
3
Stat value: 384.998108
Copied!

Game.PrintItems()

1
Game.PrintItems()
Copied!

Game.PrintItemsInSlots()

WIP

Game.printJ()

WIP

Game.printJ2()

WIP

Game.PrintNPCItemBySlot(slotName)

WIP

Game.PrintNPCItems()

WIP

Game.PrintPerks()

WIP

Game.PrintPlayerStat(TEMP_Type)

WIP

Game.PrintPlayerStatModifiers(type)

WIP

Game.PrintPlayerStats()

WIP

Game.PrintProfExpToNextLevel(stringProfType)

WIP

Game.PrintProfs()

WIP

Game.PrintStatsItem(itemName)

WIP

Game.PrintStatsPlayer()

WIP

Game.PrintStatsTarget()

WIP

Game.PrintStatTarget(statType)

WIP

Game.PrintTargetStats()

WIP

Game.printTracked()

WIP

Game.RagdollNPC(pushForce)

WIP

Game.RemoveEffectPlayer(effect)

Removed specified status effect from the player. See all current player status effects with the Game.PrintEffectsOnPlayer() function. Usage is identical to Game.ApplyEffectOnPlayer(). Currently only Base Status Effects have been documented. Refer to the list of these effects in the Base Status Effects page.
1
Game.RemoveEffectPlayer("BaseStatusEffect.Cloaked")
Copied!
The desired effect must be passed as a string with it's effect type prepended. The example on display applies 'Cloaked' which is a 'BaseStatusEffect' effect type.

Game.RemovePerk(pString)

WIP

Game.Rev()

WIP

Game.SaveArmorSet(setName)

WIP

Game.SaveWeaponSet(setName)

WIP

Game.SellItem(item)

WIP

Game.SetActionContext()

WIP

Game.SetAnimFloatOnTarget(floatValue)

WIP

Game.SetAtt(stringType, stringVal)

Set attribute to. Use the dictionary stringType to use.
1
Game.SetAtt("Strength", 20)
2
Game.SetAtt("Intelligence", 20)
3
Game.SetAtt("TechnicalAbility", 20)
4
Game.SetAtt("Reflexes", 20)
5
Game.SetAtt("Cool", 20)
Copied!

Game.SetBreathingAll()

WIP

Game.SetBreathingHeavy()

WIP

Game.SetBreathingJohnny()

WIP

Game.SetBreathingLow()

WIP

Game.SetBreathingOff()

WIP

Game.SetBreathingSick()

WIP

Game.SetBuild(stringType)

WIP

Game.SetDebugFact(fact, value)

Sets the value of a specified fact. A database of facts can be found here.
1
Game.SetDebugFact("sq032_johnny_friend", 1) --> Unlocks secret ending
Copied!

Game.SetDebugSceneTierThreshold1()

WIP

Game.SetDebugSceneTierThreshold2()

WIP

Game.SetDebugSceneTierThreshold3()

WIP

Game.SetDefaultDecay(statPoolTypeString)

WIP

Game.SetDefaultRegen(statPoolTypeString)

WIP

Game.SetLevel(stringType, stringVal)

Set level in a field. Use the dictionary stringType to use.
Example
1
Game.SetLevel("ColdBlood", 20)
2
Game.SetLevel("Hacking", 20)
3
Game.SetLevel("Stealth", 20)
4
5
Game.SetLevel("Gunslinger", 20)
6
Game.SetLevel("Kenjutsu", 20)
7
Game.SetLevel("Assault", 20)
8
Game.SetLevel("Crafting", 20)
9
Game.SetLevel("Engineering", 20)
10
Game.SetLevel("Hacking", 20)
11
Game.SetLevel("CombatHacking", 20)
12
Game.SetLevel("Athletics", 20)
13
Game.SetLevel("Demolition", 20)
14
Game.SetLevel("Brawling", 20)
Copied!

Game.SetQuestWeaponState(weaponState)

WIP

Game.SetRpgContext()

Remove everything from the player.
1
Game.SetRpgContext()
Copied!

Game.SetTimeDilation(amount)

WIP

Game.SetZoneType(zoneType)

WIP

Game.SilenceWeapon(flag)

WIP

Game.Slowmo()

The game will be on slow motion, player and AI.
1
Game.Slowmo()
Copied!

Game.SM()

WIP

Game.SpawnFlathead()

Spawn Flathead. It has no collision but it can die.
1
Game.SpawnFlathead()
Copied!

Game.SpawnLoot(loot)

WIP

Game.SpawnTestEffect()

WIP

Game.StreetCredUp()

WIP

Game.SwapItemPart()

WIP

Game.SwapPreset(mappingName)

WIP

Game.t1()

Add a recording overlay
1
Game.t1()
Copied!

Game.t2()

This function removes the recording overlay added by Game.t1(). It is unclear if there is any other effect.

Game.tconv()

Unknown.
1
> Game.tconv()
2
test
3
contact
Copied!

Game.TeleportPlayerToPosition(xStr, yStr, zStr)

WIP

Game.TestCustomQuestNotification()

WIP

Game.TestDrop()

WIP

Game.TestForcePlayerInvisible(value)

WIP

Game.testLocationUpdate(value)

WIP

Game.testmapblocked()

WIP

Game.TestNavigationSystem()

WIP

Game.TestNotification()

WIP

Game.testq101done()

WIP

Game.test_group()

WIP

Game.test_inputhint()

WIP

Game.test_inputhint1()

WIP

Game.test_inputhint_clear()

WIP

Game.TEST_TargetImmortal(shouldSetStr)

WIP

Game.TEST_TargetInvulnerable(shouldSetStr)

WIP

Game.tmq()

WIP

Game.ToggleFlashlight(val)

WIP

Game.ToggleShowWeaponsStreaming()

No effect

Game.ToIntTest(toInt)

1
Game.ToIntTest()
Copied!
Return 100 if the parameter is not a number. Else the number +100
1
Game.ToIntTest(2)
2
102
3
Game.ToIntTest(1000)
4
1100
5
Game.ToIntTest(test)
6
100
7
Game.ToIntTest(20.9)
8
120
9
Game.ToIntTest(test two)
10
lua: error: [string "Game.ToIntTest(test two)"]:1: ')' expected near 'two'
Copied!

Game.trackNext()

WIP

Game.trackPrev()

WIP

Game.UnequipItem(stringType, stringSlot)

WIP

Game.UnlockAchievementEnum(achievementString)

WIP

Game.UnlockAchievementInt(achievementNum)

WIP

Game.UnlockAllAchievements()

WIP

Game.UnlockRecord(tweak)

WIP

Game.untrack()

WIP

Game.UploadProgram(programNumber)

WIP

Game.Weak(modeStr)

WIP

Game.WeaponSD()

WIP

Game.WorkspotDisableStateView(entId)

WIP

Game.WorkspotDisableVisualLog(entId)

WIP

Game.WorkspotEnableStateView(entId)

WIP

Game.WorkspotEnableVisualLog(entId)

WIP
WIP

Game['DebugNPCs_NonExec;GameInstanceStringStringString'](durationStr, radiusStr, moveWithPlayerStr)

WIP
WIP
WIP
WIP
WIP
WIP
Last modified 1yr ago