-
Posts
178 -
Joined
-
Last visited
Everything posted by Mr.Aleks
-
| LS-RP | Los Santos Roleplay [Proximamente]
Mr.Aleks replied to Rafa's topic in Servidores en donde jugar
¿Y cuál es el foro? -
Tienes algunos ejemplos en la wiki, debería de ser más que suficiente para que lo puedas aplicar.
-
Tienes que usar guiGetScreenSize.
-
¿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
-
Check the loop in ColHit function.
-
Si nos pasas la linea donde te da nil y donde usas el export capaz puedo ver algo.
-
Crea un lado "client-side" y crea el texto ahí, luego con un trigger la ejecutas en el server-side. triggerClientEvent dxDrawText
-
No es necesario tantos elementData, puedes usar un simple trigger con el argumento de la cuenta.
-
So as I said before check your ports.
-
De esta forma que le pasé ya le debería funcionar correctamente.
-
No es lo mismo un "Team" que un grupo de ACL. Usa estas funciones: aclCreateGroup isObjectInACLGroup
-
También es una posible solución lo que te dice Alexs.
-
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
-
Déjame ver cómo pones el código ahora.
-
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.
-
The one which opens the small scoreboard.
-
Haz algo como esto: local x, y, z = guiGetText(positionxgtasa), guiGetText(positionygtasa), guiGetText(positionzgtasa) setElementPosition(getLocalPlayer(), x, y, z)
-
Si nos muestras lo que tienes será más fácil ayudarte.
-
Stop the resource that opens the scoreboard.
-
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.
-
Are you using a host? or is it local?
-
Try to set it up again or check your ports if it's in a local server.
-
Revisa cómo tienes que usar la función outputChatBox en client.
