Jump to content

Hydra

Members
  • Posts

    374
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by Hydra

  1. Sneak Peek #2 Aproape la fel ca in joc
  2. Sneak Peek #1 https://streamable.com/bn5x5j
  3. I know about drawing functions, i don't know how to make the effect to be exactly like in the video
  4. Hello, can someone give me an example on how I could make this effect? I tried to do it but without success, can't figure it out how to make it to be like in the video above
  5. Singura optiune e sa cauti prin resursele respective si sa schimbi locatia blipurilor si markerelor cu locatiile din LV pe care le vrei tu.
  6. Nu se mai merita sa faci pe MTA nimic, mai ales la noi. Comunitatea e moarta, daca vreti sa faceti ceva schimbati-va pe FiveM chiar daca si pe FiveM in comunitatea romaneasca domina Roleplayu, atat putem ce sa facem ?
  7. Sperăm ca jucătorii de atunci să revină și acum la un freeroam frumos cum e în imaginiile prezentate mai sus ?
  8. Hydra

    AC

    If I'm not mistaken, the possibility of using cheats/hacks on the MTA tends to 0% because the MTA uses a fairly good Anti-Cheat and does not allow entry to the servers with any kind of cheat or hack. On the contrary, you will be kicked automatically or banned from joining on any server on for a period of time or in the worse scenario, PERMANENT. I heard about 2 or 3 cheats that worked on MTA but I think the admins resolved that so you don't need to worry.
  9. You can do that with fetchRemote: https://wiki.multitheftauto.com/wiki/FetchRemote
  10. If you want to print it only for one time use the example above but if you want to print it infinite change 1 to 0
  11. Read the example posted on the wiki and you will see what you did wrong. https://wiki.multitheftauto.com/wiki/EngineReplaceAnimation
  12. Hydra

    2 hydra models

    You can look at the hydra model in blender and see how is done for the 2 flight modes. Maybe I'm wrong so I can say you will find something
  13. Hydra

    2 hydra models

    function ShamalWeapons() if not s then s = true bindKey("lctrl", "down", ShamalProjectiles) else s = false unbindKey("lctrl", "down", ShamalProjectiles) end end addCommandHandler("tweap", ShamalWeapons) local projectiles = {} local antispam = {} function ShamalProjectiles() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then if getElementModel(vehicle) == 519 then if not antispam[localPlayer] or antispam[localPlayer] + 500 <= getTickCount() then antispam[localPlayer] = getTickCount() local px, py, pz = getElementPosition(vehicle) local rx, ry, rz = getElementRotation(vehicle) projectiles[1] = createProjectile(vehicle, 19, px+2, py, pz-2, 3) projectiles[2] = createProjectile(vehicle, 19, px-2, py, pz-2, 3) else cancelEvent() end end end end You will need to do something like this and if I'm not wrong you will need to use trigger event in a server-side script for the rockets to be visible for everyone. NOTE: this script will work only if you are using shamal aircraft
  14. --// Quick Example local ped = createPed(0, 0, 0, 10) local vehicle = createVehicle(411, 10, 0, 10) function lookAtVehicle() local px, py, pz = getElementPosition(ped) local vx, vy, vz = getElementPosition(vehicle) local rx, ry, rz = findRotation3D(px, py, pz, vx, vy, vz) setElementRotation(ped, rx, ry, rz) end addCommandHandler("trot", lookAtVehicle) function findRotation3D( x1, y1, z1, x2, y2, z2 ) local rotx = math.atan2 ( z2 - z1, getDistanceBetweenPoints2D ( x2,y2, x1,y1 ) ) rotx = math.deg(rotx) local rotz = -math.deg( math.atan2( x2 - x1, y2 - y1 ) ) rotz = rotz < 0 and rotz + 360 or rotz return rotx, 0,rotz end this will make the ped to rotate and look at vehicle every time
  15. why did you put setTimer(function(localPlayer) lmao when I put it only setTimer(function()
  16. local myPed = createPed(skinID, posX, posY, posZ) setTimer(function() setPedFollow(myPed, localPlayer) end, 1000, 0) function setPedFollow(theElement, theTarget) if theElement then local x, y, z = getElementPosition(theTarget) local rx, ry, rz = getElementRotation(theTarget) local ex, ey, ez = getElementPosition(theElement) local distance = getDistanceBetweenPoints3D(x, y, z, ex, ey, ez) local rotation = findRotation(ex, ey, x, y) setPedRotation(theElement, rotation) if distance > 2 then setPedControlState(theElement, "forwards", true) else setPedControlState(theElement, "forwards", false) end end end function findRotation( x1, y1, x2, y2 ) local t = -math.deg( math.atan2( x2 - x1, y2 - y1 ) ) return t < 0 and t + 360 or t end
  17. it works only with timer or onClientRender. Also you need to put findRotation function too
  18. local blip local teams = { {name = "Red Team", r = 255, g = 0, b = 0}, {name = "Blue Team", r = 0, g = 0, b = 255} } function onTeam() local team = getPlayerTeam(source) if team then if getTeamName(team) == teams[1].name then for _, v in ipairs(getPlayersInTeam(team)) do blip = createBlipAttachedTo(v, 0, 2, teams[1].r, teams[1].g, teams[1].b, 255) end elseif getTeamName(team) == teams[2].name then for _, v in ipairs(getPlayersInTeam(team)) do blip = createBlipAttachedTo(v, 0, 2, teams[2].r, teams[2].g, teams[2].b, 255) end end end end addEventHandler("onPlayerSpawn", root, onTeam)
  19. Here is a useful library you can use: https://forum.multitheftauto.com/topic/133212-rel-add-new-models-library/
  20. --// Quick Example local myCol = createColRectangle(1024, 512, 20, 20) --// this is how you create the col local myRadar = createRadarArea(1024, 512, 20, 20, 0, 255, 0, 255, root) --// with radar area you can detect your col easier function onColHit(hit, dim) if getElementType(hit) == "player" then killPed(hit) outputChatBox("You were killed", hit, 255, 0, 0, true) end end addEventHandler("onColShapeHit", root, onColHit) You have 6 types of colshapes, in this example I used the Rectangle one
  21. Try using the texture name from wiki: https://wiki.multitheftauto.com/wiki/CJ_Clothes\Hats_(16)
×
×
  • Create New...