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. setTimer(setPedAnimation, 1000, 1, localPlayer)
  5. 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
  6. setPedAnimation(localPlayer, "GANGS", "prtial_gngtlkC", 1, false , false) setTimer(setPedAnimation, 1000, 1, localPlayer)
  7. Tomas

    onClientRender()

    triggerClientEvent( "onRender", root) más simple
  8. I've started to develop on IGCrpg.net, Hope to see you there! IP: s1.igcrpg.net:22003

  9. 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
  10. addCommandHandler("hideblip", function (p) el = getAttachedElements(p) for element in ipairs(el) do if getElementType(element) == "blip" then setElementAlpha(element, 0) end end end )
  11. Make sure the server is running under 22003 port.
  12. Sin los () addEventHandler ("onColShapeHit", resourceRoot,
  13. En ese caso el evento solo se adheriría a la última col creada, hay que usar resourceRoot.
  14. 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
  15. Add "startup" to autostart resource list in mtaserv.conf
×
×
  • Create New...