I’m working on my inventory script and i would like to make a system like the inventory on Elder Scroll’s game (Morrowind, oblivion, skyrim,etc…).
If the player carry heavier than his max capacity, i will not be able to jump and run. So I tried to disable this control with DisableControlAction but it doesn’t work.
Do you have a idea why it not work ?
if getPods() > maxCapacity then TriggerEvent('hud:Notif',"You carry too heavy") DisableControlAction(0,22,true) end
PS : After reboot, it work. I don’t know why but it’s work. You can delete this topic