-
Posts
373 -
Joined
-
Last visited
-
Days Won
12
Everything posted by Hydra
-
Take a look at this topic:
- 1 reply
-
- 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.
- 1 reply
-
- 1
-
Congratulations!
-
Use attachElements()
-
Mai bine faci un alt post aici:
-
I think you can use engineApplyShaderToWorldTexture for weapons. For cars it's easy to use setVehicleVariant but for weapons I don't know
-
function abc() if (source == "VipM") then triggerServerEvent("yourHandling", localPlayer) end end addEventHandler("onClientGUIClick", getRootElement(), abc)
-
You can change from admin panel -> resources -> freeroam -> settings
-
Deleted. This topic can be deleted or closed
-
You need to use vehicle nodes. Take a look at this posts:
-
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 )
-
Poti folosi si resursa sirenEdit
-
setPedControlState or setPedAnalogControlState
-
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!
-
Cred ca la resursa asta te referi. https://community.multitheftauto.com/index.php?p=resources&s=details&id=8424
-
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)
-
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
-
Ai aici toate id-urile la masini: http://weedarr.wikidot.com/veh
-
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.
-
Client: function hideDefaultHud() setPlayerHudComponentVisible("radar", false) end addEventHandler("onClientResourceStart", getRootElement(), hideDefaultHud) Server: function hideHud() setPlayerHudComponentVisible(source, "radar", false) end addEventHandler("onPlayerJoin", getRootElement(), hideHud)
-
showPlayerHudComponent is not working anymore. Use: Client: setPlayerHudComponentVisible("radar", false) Server: setPlayerHudComponentVisible(source, "radar", false)
-
function executeCommandWithKey() executeCommandHandler("yourcommand", yourfunction) end bindKey("x", "down", executeCommandWithKey()
- 1 reply
-
- 1