Returns whether the action of this ID can be performed.
Returns whether the action of this ID can be performed.
1 string id
the ID of the action.
1 bool
whether the action can be performed
interactionRestrictor:restrictAction("myActionName") -- returns false now interactionRestrictor:canPerformAction("myActionName") if not interactionRestrictor:canPerformAction("myActionName") then print("this action can not be performed as it is restricted!") else print("this action can be performed") end