Forgive my poor English. I want, for example, to find out if the item is equipped in the head slot and execute a certain code, if it is not. I do not understand why this function does not work. What am I doing wrong? There is a function in the LUA script: I tried different conditions, but this condition does not work. Help me please ...
Where are you running this code? Not all scripts have access to the player function table. For example, scripted interfaces can access it but objects or tech can not.