Koja Scripts

Commands and keybinds

All chat and console commands of koja-inventory-v2 and the default keys, with the config option behind each one.

Commands and keybinds

Admin commands

Allowed for the ACE command.koja-inventory-v2 and the groups in Config.AdminGroups. Wherever a player id is asked for, me means yourself.

CommandWhat it does
/invadminOpens the admin panel.
/giveitem [id|me] [item] [count]Gives an item.
/removeitem [id|me] [item] [count]Removes up to that many.
/clearinv [id|me]Clears a player's inventory.
/openinv [id|me|stash]Opens a player's inventory or a stash by name.
/openstash [containerId]Opens any container by its id.
/invkit [kit] [id|me]Gives a ready item kit: showcase (default), weapons, attachments, food, medical, fishing, materials. Kits are in Config.DebugKits.
/invdummy [pose]Spawns a test ped with items for testing frisk and give. See below.
/trunkareaCalibrates where trunk props lie for the vehicle model you stand at.
koja_migrate_ox [force]Console only. Imports every ox_inventory inventory at once. See Migrating from ox_inventory.

Test dummies

/invdummy spawns a ped that behaves like a player for frisking and giving (up to Config.Dummies.max). The other subcommands act on the dummy nearest to you.

CommandWhat it does
/invdummy or /invdummy handsup|cuffed|dead|standSpawns a dummy, optionally in that pose (Config.Dummies.poses).
/invdummy pose <pose>Changes the pose.
/invdummy answer accept|decline|ignoreHow it answers give offers.
/invdummy giveIt offers you a random item.
/invdummy fillRefills its items from Config.Dummies.items.
/invdummy openOpens its inventory.
/invdummy removeRemoves it.
/invdummy clearRemoves all your dummies.

Player commands

CommandConfigWhat it does
/friskConfig.Frisk.commandFrisks the player in front of you (hands up, cuffed or dead).
/searchConfig.Search.jobsSearches the nearest player (police jobs).

Keybinds

All keys are FiveM key mappings: players can change them in Settings → Key Bindings → FiveM.

KeyMappingConfig
TABOpen inventoryConfig.Keys.open
ZInventory: show hotbarConfig.Keys.hotbar
1 to 5Inventory: slot 1 to 5Config.HotbarSize
EInteract (shop, bench, ground)Config.Keys.interact
Middle mouseThrow weapon (hold)Config.Throw.key
noneSearch player (hands up)Config.Frisk.key

While holding an item: E use, right mouse throw, left mouse put down, X put away (Config.Hands.controls). With a firearm drawn, R reloads from the ammo in your inventory.