Jump to content

Sensacion

Members
  • Posts

    186
  • Joined

  • Last visited

Everything posted by Sensacion

  1. Bueno, si ya me fijé, copialo una vez más, creo que ya, je je je
  2. copialo de nuevo, me olvidé de borrar windows.meca1[2].panes = {}
  3. Reemplaza esa función por esto: addEventHandler("onClientVehicleEnter", getRootElement(), function() windows.meca1[2].panes = {} for index, node in ipairs ( delanteros ) do if getVehicleName(source) == node[4] then table.insert( windows.meca1[2].panes, { image = ":players/images/skins/-1.png", title = "Parachoques "..node[1], text = "Cuesta "..node[3].."\nUn bonito parachoques para tu coche a un precio económico.", onHover = function( cursor, pos ) dxDrawRectangle( pos[1], pos[2], pos[3] - pos[1], pos[4] - pos[2], tocolor( unpack( { 0, 255, 120, 31 } ) ) ) end, onClick = function( key ) if key == 1 then hide() showCursor(false) end end, wordBreak = true, } ) end end end )
  4. Agregando esto: windows.meca1[2].panes = {} debajo de: if getVehicleName(source) == node[4] then
  5. Limpia la tabla cada vez que entren al vehículo
  6. No te entendí bien, si lo que quieres es darle variables a los vehículos podrías insertarlos en una tabla con una key única como el nombre de cuenta por ejemplo y utilizar esa tabla, o guardarlos en una base de datos y usarlos en base a id.
  7. o podrias guardarlo por ejemplo en mysql y usar SELECT * from accounts order by kills DESC limit 10
  8. The Ferrari in the video is actually adapted to ImVehFt (I guess you already noticed that from the dashboard gauges ). I've been messing with the steering wheel for a while but you know... somehow it's not very cooperative. I can only make it turn counter-clockwise (left) without problems I actually used my DualShock 3 in the video (which really helps keeping a monster like that Ferrari under control ) I did like this: --# Left bindKey("A", "down", function() setVehicleComponentRotation(theVeh, "Wheel", rx+1, ry, rz) end) bindKey("A", "up", function() setVehicleComponentRotation(theVeh, "Wheel", rx-1, ry, rz) --OR resetVehicleComponentRotation(theVeh, "Wheel") end) --# Right bindKey("D", "down", function() -- end) bindKey("D", "up", function() -- end) etc.. Fast example, there is probably easyer way The values rx,ry,rz is too probably wrong, i know This way steering wheel doesn't turn smooth Don't work, for this, we need the handling functions, for client side.
  9. Just add effects of blips like gta v, around the radar
  10. Si se puede usar argumentos en español
  11. Sensacion

    MySQL

    a que te refieres con que "se logeen atravez del foro del clan" que inicien sesión en el foro y en el juego les diga que se conectaron? o que se registren del foro y con esa cuenta se conecten.
  12. Yo puedo hackear facebook, pero por cuestiones de moral "no te diré" haahahahhahaha, y respondiendo a tu pregunta, puedes obtener el resource entero consiguiendo la clave del vps o host en el que se encuentra, es una forma, no la única obviamente.
  13. te falta una coma en el index 5 esto lookAtZ = 9.94} por esto lookAtZ = 9.94},
  14. probablemente "needengine" esté devolviendo "false"
  15. lo decía porque me he fijado, en algunos post, que lo único que hacen es establecerle valores máximos y mínimos cuando es radar, más no ubicar el punto exacto si se trazara una línea del centro a la imagen del blip, yo ubiqué ese punto usando trigonometría y geometría analítica, pero aún en papel no en script y quería solo notar la diferencia.
  16. Deja un vídeo para ver tu radar en acción!
  17. local n = { [1] = { 500, 10, 50, 25, 25, 25, 25, 20, 50, 0, 0, 0 },--Nivel 1 [2] = { 550, 20, 100, 50, 50, 50, 50, 30, 100, 15, 15, 0 },--Nivel 2 } local func_lvl = setmetatable({}, {__index = function (t, k) return n[#n] end}) local lvl_tbl = setmetatable( n, {__index=func_lvl}) local fallback_t = setmetatable({}, {__index=lvl_tbl}) addEvent ( "onPlayerLevelUP", true ) addEventHandler ( "onPlayerLevelUP", root, function ( ) local n = tonumber( getElementData(source, "level")) setPedStat(source, 24, fallback_t[n][1]) for i = 69, 79 do setPedStat(source, i, fallback_t[n][i-67]) end outputChatBox("Nivel "..n, source, 255, 255, 255, true) end ) addEventHandler ( "onPlayerLogin", root, setTimer( function( ) triggerEvent( "onPlayerLevelUP", source ) end 1000, 1, source ) )
  18. local n = { [1] = { 500, 10, 50, 25, 25, 25, 25, 20, 50, 0, 0, 0 },--Nivel 1 [2] = { 550, 20, 100, 50, 50, 50, 50, 30, 100, 15, 15, 0 },--Nivel 2 } local func_lvl = setmetatable({}, {__index = function (t, k) return n[#n] end}) local lvl_tbl = setmetatable( n, {__index=func_lvl}) local fallback_t = setmetatable({}, {__index=lvl_tbl}) addEvent ( "onPlayerLevelUP", true ) addEventHandler ( "onPlayerLevelUP", root, function ( ) local n = tonumber( getElementData(source, "level")) setPedStat(source, 24, fallback_t[n][1]) for i = 69, 79 do setPedStat(source, i, fallback_t[n][i-67]) end outputChatBox("Nivel "..n, source, 255, 255, 255, true) end )
  19. dxDrawText("Salud: "..math.ceil ( getElementHealth ( localPlayer ) ).."%", 161, 257, 477, 272, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, true, false)
  20. Postea la función updateCopias
  21. No es necesario que esté en .zip, solo colocas el recurso en la carpeta "resources" luego usas refresh en la consola o el juego y listo.
×
×
  • Create New...