You are creating the hotkeys and passing it the function names before you even declared the function.
You are therefore sending it a nil, hence the error.
Move the function declarations to the top of the Lua script.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum