Jump to content

Iniciante - Erro

Recommended Posts

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)
addEvent("copiarPosicao", true)
addEventHandler("copiarPosicao",root, posicao)

Type = "client"

function ClicarPosicao(button, state)
    if (button == "left") then
        triggerServerEvent("copiarPosicao", localPlayer)

O SetClipBoard não funciona do lado do server?

Link to post

setClipBoard é client-side, e ele só aceita string(texto).


function ClicarPosicao(button, state)
   if (button == "left") then
      local x,y,z = getElementPosition(localPlayer)
      setClipboard(x..", "..y..", "..z)


Edited by Tommy.
  • Thanks 1
Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...