core_inventory

in core_inventory/client/main.lua CTRL + F and look for:

RegisterCommand('slot' .. i, function()
  • at the beginning of the command add following:

  • if LocalPlayer.state.inDeathmatch == true then return end
  • your command should look like this

in core_inventory/client/main.lua CTRL + F and look for:

function useWeapon(weapon, inventory)
  • at the beginning of the function add following:

  • if LocalPlayer.state.inDeathmatch == true then return end
  • your function should look like this:

in core_inventory/client/main.lua CTRL + F and look for:

function openInventory()
  • at the beginning of the function add following:

  • if LocalPlayer.state.inDeathmatch == true then return end
  • your function should look like this:

Last updated