Jump to content

Tomas

Members
  • Posts

    2,530
  • Joined

  • Last visited

Everything posted by Tomas

  1. local relativePosition = Vector3(0, 1, 0) local matrix = player.matrix objeto.position = matrix:transformPosition(relativePosition) Debes activar OOP en el meta.xml
  2. Aquí tienes un ejemplo del movimiento, lo hice hace un año y es, en su mayoría, sacado del map editor: https://github.com/ChicoRDL/-GTi-RPG-V3-/blob/master/[GTi-RPG-V3]/[AAA-GTi-Resources/[GTI]/GTIapartments/editor/editor.lua
  3. El formato de la tabla cambió, por eso, eso ya no te sirve. function getIndexFromCategory (category) for k, v in ipairs(table_category) do if ( v == category ) then return k end end return false end local index = getIndexFromCategory(category) if ( index ) then for _, id in ipairs ( table_category[index][2] ) then local row = guiGridListAddRow ( GRIDs ) guiGridListSetItemText ( GRIDs, row, 1, id[1], false, false ) end end
  4. Ambas
  5. onPlayerLogin
  6. setTimer(setPedAnimation, 1000, 1, localPlayer)
  7. Tomas

    Shaders en CJ

    El filepath está mal, si quieres colocar el nombre del recurso tienes que colocarle un ":" delante, si no simplemente lo borras. personalizada/camisetas/hockeytop.png
  8. setPedAnimation(localPlayer, "GANGS", "prtial_gngtlkC", 1, false , false) setTimer(setPedAnimation, 1000, 1, localPlayer)
  9. Tomas

    onClientRender()

    triggerClientEvent( "onRender", root) más simple
  10. Y corrige los "haz" y "has"
  11. I've started to develop on IGCrpg.net, Hope to see you there! IP: s1.igcrpg.net:22003

  12. Tomas

    Animacion

    Cuál animación?
  13. No es necesario destruirlo y crearlo, solo esconderlo. el = getAttachedElements(player) for _,value in ipairs(el) do if getElementType(value) == "blip" then setElementAlpha(value, getElementAlpha(value) == 255 and 0 or 255) end end
  14. No hay que destruirlo, solo esconderlo...
  15. Es un script de tipo server.
  16. addCommandHandler("hideblip", function (p) el = getAttachedElements(p) for element in ipairs(el) do if getElementType(element) == "blip" then setElementAlpha(element, 0) end end end )
  17. getAttachedElements también te puede servir
  18. Make sure the server is running under 22003 port.
  19. Sin los () addEventHandler ("onColShapeHit", resourceRoot,
  20. En ese caso el evento solo se adheriría a la última col creada, hay que usar resourceRoot.
  21. function draw () if ( isElement ( speakerSound [localPlayer] ) )then local soundSpeak = getSoundFFTData(speakerSound[localPlayer], 8192, 30) if not soundSpeak then return end for i,v in ipairs( soundSpeak ) do size = math.round((v*320),0)>100 and 100 or math.round((v*320),0) large = 13 dxDrawRectangle(wx*520+(i*wx*large), wy*600, wx*large-1, wy*2*size*-1, tocolor(0, 255, 0, 255), false) end end end
  22. Add "startup" to autostart resource list in mtaserv.conf
×
×
  • Create New...