diff --git a/docs/ox_inventory/Functions/Client/Statebags/invBusy.md b/docs/ox_inventory/Functions/Client/Statebags/invBusy.md new file mode 100644 index 00000000..ce324111 --- /dev/null +++ b/docs/ox_inventory/Functions/Client/Statebags/invBusy.md @@ -0,0 +1,17 @@ +--- +title: invBusy +--- + +Returns whether the player's inventory is currently running an action (i.e. using an item) + +* invBusy: `boolean` + +```lua +local isInventoryBusy = LocalPlayer.state.invBusy + +if isInventoryBusy then + -- Do stuff when busy +else + -- Do stuff when not busy +end +``` diff --git a/docs/ox_inventory/Functions/Client/Statebags/invHotkeys.md b/docs/ox_inventory/Functions/Client/Statebags/invHotkeys.md new file mode 100644 index 00000000..5f626006 --- /dev/null +++ b/docs/ox_inventory/Functions/Client/Statebags/invHotkeys.md @@ -0,0 +1,15 @@ +--- +title: invHotkeys +--- + +Allows you to enable/disable a player's access to inventory hotkeys. + +* invHotkeys: `boolean` + +```lua +LocalPlayer.state.invHotkeys = false +``` + +```lua +LocalPlayer.state.invHotkeys = true +``` diff --git a/docs/ox_inventory/Functions/Client/Statebags/invOpen.md b/docs/ox_inventory/Functions/Client/Statebags/invOpen.md new file mode 100644 index 00000000..c9b6892f --- /dev/null +++ b/docs/ox_inventory/Functions/Client/Statebags/invOpen.md @@ -0,0 +1,16 @@ +--- +title: invOpen +--- + +Returns whether the player's inventory is currently open or not. + +* invOpen: `boolean` + +```lua +local isInventoryOpen = LocalPlayer.state.invOpen + +if isInventoryOpen then + -- Do stuff when open +else + -- Do stuff when closed +end