Hopefully someone can help me with this.
I get this error but I got no clue why.
"Server triggered the event onClientKey, but event is not marked as remotly Triggerable"
Clientside:
addEvent("onClientKey", true)
addEventHandler("onClientKey", root, function(key, pressed)
if key == getKeyBoundToCommand("screenshot") and pressed then
local chatterName = getPlayerName ( getLocalPlayer() )
outputChatBox ( chatterName.." has made a screenshot.", true )
end
end)
Serverside:
triggerClientEvent ( "onClientKey", getRootElement(), "playerUsesScreen" ,true )