luqy Posted October 6, 2018 Share Posted October 6, 2018 (edited) Hola, qué tal? Estoy incursionando en este mundillo del MTA:SA y quería saber si hay algún problema con este código de la wiki: function playerPressedKey(button, press) if (press) then -- Only output when they press it down outputChatBox("You pressed the "..button.." key!") end end addEventHandler("onClientKey", root, playerPressedKey) Para más info: https://wiki.multitheftauto.com/wiki/OnClientKey El problema es que simplemente no sucede nada en mi server cuando apreto cualquier tecla. Saludos! Edited October 6, 2018 by luqy Link to comment
MrKAREEM Posted October 6, 2018 Share Posted October 6, 2018 57 minutes ago, luqy said: Hola, qué tal? Estoy incursionando en este mundillo del MTA:SA y quería saber si hay algún problema con este código de la wiki: function playerPressedKey(button, press) if (press) then -- Only output when they press it down outputChatBox("You pressed the "..button.." key!") end end addEventHandler("onClientKey", root, playerPressedKey) Para más info: https://wiki.multitheftauto.com/wiki/OnClientKey El problema es que simplemente no sucede nada en mi server cuando apreto cualquier tecla. Saludos! did u put it in client side ?? 1 Link to comment
luqy Posted October 6, 2018 Author Share Posted October 6, 2018 34 minutes ago, MrKAREEM said: did u put it in client side ?? Era eso amigo, muchas gracias! Problema solucionado. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now