Jump to content

Mr.Aleks

Members
  • Posts

    178
  • Joined

  • Last visited

Everything posted by Mr.Aleks

  1. Tienes algunos ejemplos en la wiki, debería de ser más que suficiente para que lo puedas aplicar.
  2. ¿Probaste a hacerlo así?: local wpn = getElementData(getLocalPlayer(), "currentweapon_1") if wpn == "BM16" then if getElementData(getLocalPlayer(), "BM16 Pellet") > 0 then setElementData(getLocalPlayer(), "BM16 Pellet", getElementData(getLocalPlayer(), "BM16 Pellet") - 1) end end if wpn == ".50 Barret" then if getElementData(getLocalPlayer(), ".50 Barret Mag") > 0 then setElementData(getLocalPlayer(), ".50 Barret Mag", getElementData(getLocalPlayer(), ".50 Barret Mag") - 1) end end
  3. Si nos pasas la linea donde te da nil y donde usas el export capaz puedo ver algo.
  4. Crea un lado "client-side" y crea el texto ahí, luego con un trigger la ejecutas en el server-side. triggerClientEvent dxDrawText
  5. No es necesario tantos elementData, puedes usar un simple trigger con el argumento de la cuenta.
  6. So as I said before check your ports.
  7. De esta forma que le pasé ya le debería funcionar correctamente.
  8. No es lo mismo un "Team" que un grupo de ACL. Usa estas funciones: aclCreateGroup isObjectInACLGroup
  9. También es una posible solución lo que te dice Alexs.
  10. Prueba así: function panel() window = guiCreateWindow(203, 172, 388, 214, "[Warp] Position", false) guiWindowSetSizable(window, false) showCursor (true) positionxgtasa = guiCreateEdit(27, 25, 351, 31,"", false, window) positionygtasa = guiCreateEdit(28, 76, 350, 31, "", false, window) positionzgtasa = guiCreateEdit(27, 127, 351, 31,"" , false, window) warp = guiCreateButton(9, 169, 284, 35, "Warp to Position Word GTA:SA", false, window) guiSetProperty(warp, "NormalTextColour", "FFAAAAAA") sair = guiCreateButton(303, 168, 75, 36, "Exit Panel", false, window) guiSetProperty(sair, "NormalTextColour", "FFAAAAAA") warpxgtasa = guiCreateLabel(10, 28, 15, 18, "X:", false, window) warpygtasa = guiCreateLabel(12, 79, 15, 18, "Y:", false, window) warpzgtasa = guiCreateLabel(12, 132, 15, 18, "Z:", false, window) addEventHandler("onClientGUIClick",sair,cancelar) addEventHandler("onClientGUIClick",warp,gotowarp) end addCommandHandler("warpos",panel) function cancelar() destroyElement(window) showCursor(false) end function gotowarp() local x, y, z = guiGetText(positionxgtasa), guiGetText(positionygtasa), guiGetText(positionzgtasa) setElementPosition(getLocalPlayer(), x, y, z) end
  11. Déjame ver cómo pones el código ahora.
  12. Quita el "local" a las variables del edit box en la función del panel y prueba con el código que te pasé más arriba.
  13. The one which opens the small scoreboard.
  14. Haz algo como esto: local x, y, z = guiGetText(positionxgtasa), guiGetText(positionygtasa), guiGetText(positionzgtasa) setElementPosition(getLocalPlayer(), x, y, z)
  15. Si nos muestras lo que tienes será más fácil ayudarte.
  16. Stop the resource that opens the scoreboard.
  17. Si lo creas dentro de una función sin ejecutarla, es obvio que no se creará al iniciar el resource. Ejecuta la función con algún evento específico.
  18. Are you using a host? or is it local?
  19. Try to set it up again or check your ports if it's in a local server.
  20. Revisa cómo tienes que usar la función outputChatBox en client.
×
×
  • Create New...