MatheusNs Posted April 26, 2020 Share Posted April 26, 2020 Fala galera! Estou começando meus estudos em painel GUI, e estou com alguns erros... Um deles é a função "setClipBoard" que me retorna "nil" Type = "server" function posicao() local x,y,z = getElementPosition(source) setClipboard(x, y, z) end addEvent("copiarPosicao", true) addEventHandler("copiarPosicao",root, posicao) Type = "client" function ClicarPosicao(button, state) if (button == "left") then triggerServerEvent("copiarPosicao", localPlayer) end end O SetClipBoard não funciona do lado do server? Link to comment
Tommy. Posted April 26, 2020 Share Posted April 26, 2020 (edited) o setClipBoard é client-side, e ele só aceita string(texto). Tente: function ClicarPosicao(button, state) if (button == "left") then local x,y,z = getElementPosition(localPlayer) setClipboard(x..", "..y..", "..z) end end client-side Edited April 26, 2020 by Tommy. 1 Link to comment
MatheusNs Posted April 26, 2020 Author Share Posted April 26, 2020 4 minutes ago, Tommy. said: o setClipBoard é do lado do cliente e ele só aceita string (texto). Tente: lado do cliente Muito obrigado! 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