Jump to content

Hydra

Members
  • Posts

    372
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Hydra

  1. I think this is what you want: CustomWindow:setMinimalWidth CustomWindow:setMinimalHeight CustomWindow:setMaximalHeight CustomWindow:setMaximalHeight https://wiki.multitheftauto.com/index.php?title=CustomWindow:setMinimalWidth&action=edit&redlink=1 https://wiki.multitheftauto.com/index.php?title=CustomWindow:setMinimalHeight&action=edit&redlink=1 https://wiki.multitheftauto.com/index.php?title=CustomWindow:setMaximalWidth&action=edit&redlink=1 https://wiki.multitheftauto.com/index.php?title=CustomWindow:setMaximalHeight&action=edit&redlink=1 Nvm you can delete the answer because only now I noticed that the functions are not implemented yet.
  2. Hydra

    Help

    Try this https://wiki.multitheftauto.com/wiki/EngineSetObjectGroupPhysicalProperty or https://wiki.multitheftauto.com/wiki/EngineSetModelPhysicalPropertiesGroup
  3. I think you can use engineApplyShaderToWorldTexture for weapons. For cars it's easy to use setVehicleVariant but for weapons I don't know
  4. Hydra

    [Help] Speed

    function abc() if (source == "VipM") then triggerServerEvent("yourHandling", localPlayer) end end addEventHandler("onClientGUIClick", getRootElement(), abc)
  5. You can change from admin panel -> resources -> freeroam -> settings
  6. Deleted. This topic can be deleted or closed
  7. You need to use vehicle nodes. Take a look at this posts:
  8. local Marker1 = createMarker(-82.43913, -907.21539, 17.27800 ,"cylinder", 2, 0, 0, 255, 255) addEventHandler("onMarkerHit",Marker1, function (hitElement,matchingDimension) local policePed = createPed (280, -148.21268, -959.39343, 28.35586) local PoliceCar = createVehicle(597, -148.21268, -959.39343, 28.35586, 359.447, 0.000, 90) warpPedIntoVehicle ( policePed, PoliceCar) setPedAnalogControlState(policePed, "accelerate", 1) end )
  9. Poti folosi si resursa sirenEdit
  10. setPedControlState or setPedAnalogControlState
  11. Un sondaj bine facut pe tema cu care ne confruntam acum(sa ii spun asa), eu unul l-am completat si sper sa se schimbe situatia in care ne aflam in comunitatea romaneasca de MTA. Totusi nu cred ca sunt multi care folosesc forumu/discordu pentru a vedea acest subiect dar sa speram ca se vor aduna cat mai multe raspunsuri. UP!
  12. local myObject = createObject(...) setElementDimension(myObject, dimension)
  13. Cred ca la resursa asta te referi. https://community.multitheftauto.com/index.php?p=resources&s=details&id=8424
  14. mysong = playSound3D("song.mp3", 2050.0209960938, 1510.056640625, 10.671875, true) setSoundMaxDistance(mysong, 100) local a = 0 local myObject = createObject(1775, 2050.0209960938, 1510.056640625, 10.671875, -0, 0, 178.50372314453) local ox, oy, oz = getElementPosition(myObject) function animateObject() local animMusic = 0+math.random(-a,a) moveObject(myObject, 1000, ox, oy+animMusic, oz) end addEventHandler("onClientRender", getRootElement(), animateObject) function asd() if mysong then local leftData, rightData = getSoundLevelData(mysong) if (leftData) then a = 3*(leftData/3000) end end end addEventHandler("onClientRender", getRootElement(), asd)
  15. You can more easily use triggerEvent from one resource to another. Example: 1st resource: function render() your code here end addEventHandler("onClientRender", getRootElement(), render) function hideRadar() removeEventHandler("onClientRender", getRootElement(), render) end addEvent("hideRadar", true) addEventHandler("hideRadar", root, hideRadar) 2nd resource: function yourfunction() triggerEvent("hideRadar", source) end addEventHandler("yourevent", getRootElement(), yourfunction) https://wiki.multitheftauto.com/wiki/TriggerEvent
  16. Hydra

    Creearea mapei

    Ai aici toate id-urile la masini: http://weedarr.wikidot.com/veh
  17. local function init() setPlayerHudComponentVisible("radar", false) if settings.disableGTASAhealthbar then setPlayerHudComponentVisible("health", false) end if settings.disableGTASAarmorbar then setPlayerHudComponentVisible("armour", false) end if settings.disableGTASAoxygenbar then setPlayerHudComponentVisible("breath", false) end end addEventHandler("onClientResourceStart", resourceRoot, init) Put this code.
  18. Client: function hideDefaultHud() setPlayerHudComponentVisible("radar", false) end addEventHandler("onClientResourceStart", getRootElement(), hideDefaultHud) Server: function hideHud() setPlayerHudComponentVisible(source, "radar", false) end addEventHandler("onPlayerJoin", getRootElement(), hideHud)
  19. showPlayerHudComponent is not working anymore. Use: Client: setPlayerHudComponentVisible("radar", false) Server: setPlayerHudComponentVisible(source, "radar", false)
  20. function executeCommandWithKey() executeCommandHandler("yourcommand", yourfunction) end bindKey("x", "down", executeCommandWithKey()
  21. myZone = createColSphere (2490, -1668, 12.5, 25) function dimensionCheckerEnter(theElement, matchingDimension) if matchingDimension then bindKey("H", "down", dxGuiTeleport) end end addEventHandler ("onClientColShapeHit", myZone, dimensionCheckerEnter) function dimensionCheckerLeave(theElement, matchingDimension) if matchingDimension then unbindKey("H", "down", dxGuiTeleport) end end addEventHandler ("onClientColShapeLeave", myZone, dimensionCheckerLeave)
×
×
  • Create New...