Üzenetek megjelenítése

Ez a szekció lehetővé teszi a felhasználó által írt összes hozzászólás megtekintését. Vedd figyelembe, hogy csak azokba a fórumokba írt hozzászólásokat látod, amelyekhez hozzáférésed van.


Üzenetek - Live

Oldalak: 1 2 [3] 4 5 ... 34
31
Segítségkérés / Nem nyitja meg a LUA fájlt.
« Dátum: 2017. Február 18. - 19:12:38 »
Attól, hogy nem luac még van rajta védelem.

32
Segítségkérés / GUI Méreteinek egységesítése
« Dátum: 2017. Február 07. - 20:29:32 »

local screenX, screenY = guiGetScreenSize()
local maxScreenX, maxScreenY = 1920, 1080 -- a felbontásod amin fejlesztesz
local responsiveMultiplier = screenX / maxScreenX
 
local panelWidth = 1500 * responsiveMultiplier
local panelHeight = 960 * responsiveMultiplier

 
 

33
Segítségkérés / A Radart 2x mutatja, ha mozgatom miért?
« Dátum: 2017. Február 07. - 20:04:11 »
Hát ha dxDrawImageSection-el van megoldva akkor rossz a matek.

34
Segítségkérés / A Radart 2x mutatja, ha mozgatom miért?
« Dátum: 2017. Február 06. - 15:21:08 »

local mapTexture = dxCreateTexture(...)
dxSetTextureEdge(mapTexture, \"border\", tocolor(255, 255, 255, 255)) -- beállítod a víz színét

 
 

36
Segítségkérés / MTA \"Egyedi\" Duda
« Dátum: 2017. Január 07. - 14:48:06 »
Triggerelni is fölösleges, elég az elementData + onClientElementDataChange.
 

local vehiclesWithCustomHorns = {}
local previewingHorn = nil
bindKey(\"f2\", \"down\", -- Egyedi random duda beszerelés a kocsiba
function()
   local vehicle = getPedOccupiedVehicle(localPlayer)
   
   if vehicle then
      if getVehicleOccupant(vehicle, 0) == localPlayer then
         setElementData(vehicle, \"tuning.customHorn\", math.random(1, 10))
      end
   end
end
)
bindKey(\"f3\", \"down\", -- Egyedi duda eltávolítása a kocsiból
function()
   local vehicle = getPedOccupiedVehicle(localPlayer)
   
   if vehicle then
      if getVehicleOccupant(vehicle, 0) == localPlayer then
         setElementData(vehicle, \"tuning.customHorn\", nil)
      end
   end
end
)
bindKey(\"h\", \"down\",
function()
   local vehicle = getPedOccupiedVehicle(localPlayer)
   
   if vehicle then
      if getVehicleOccupant(vehicle, 0) == localPlayer then
         local customHorn = getElementData(vehicle, \"tuning.customHorn\") or nil
         
         if customHorn then
            toggleControl(\"horn\", false)
            setElementData(vehicle, \"customHorn.state\", true)
         else
            toggleControl(\"horn\", true)
         end
      end
   end
end
)
bindKey(\"h\", \"up\",
function()
   local vehicle = getPedOccupiedVehicle(localPlayer)
   
   if vehicle then
      if getVehicleOccupant(vehicle, 0) == localPlayer then
         local customHorn = getElementData(vehicle, \"tuning.customHorn\") or nil
         
         if customHorn then
            toggleControl(\"horn\", false)
            setElementData(vehicle, \"customHorn.state\", false)
         else
            toggleControl(\"horn\", true)
         end
      end
   end
end
)
addEventHandler(\"onClientElementDataChange\", root,
function(data)
   if getElementType(source) == \"vehicle\" then
      if data == \"tuning.customHorn\" then
         local customHorn = getElementData(source, \"tuning.customHorn\") or nil
         
         if not customHorn then
            if vehiclesWithCustomHorns[source] then
               if isElement(vehiclesWithCustomHorns[source]) then
                  stopSound(vehiclesWithCustomHorns[source])
               end
               
               vehiclesWithCustomHorns[source] = nil
            end
         end
      elseif data == \"customHorn.state\" then
         if isElementStreamedIn(source) then
            local hornState = getElementData(source, \"customHorn.state\") or false
            
            if hornState then
               local customHorn = getElementData(source, \"tuning.customHorn\") or nil
               
               if customHorn then
                  local vehicleX, vehicleY, vehicleZ = getElementPosition(source)
         
                  vehiclesWithCustomHorns[source] = playSound3D(\"horns/\" .. customHorn .. \".mp3\", vehicleX, vehicleY, vehicleZ, true)
                  
                  setSoundMaxDistance(vehiclesWithCustomHorns[source], 50)
                  attachElements(vehiclesWithCustomHorns[source], source)
                  
                  outputDebugString(\"[custom horn]: driver: \" .. getPlayerName(getVehicleOccupant(source, 0)))
               end
            else
               if vehiclesWithCustomHorns[source] then
                  if isElement(vehiclesWithCustomHorns[source]) then
                     stopSound(vehiclesWithCustomHorns[source])
                  end
                  
                  vehiclesWithCustomHorns[source] = nil
               end
            end
         end
      end
   end
end
)
addEventHandler(\"onClientElementStreamIn\", root,
function()
   if getElementType(source) == \"vehicle\" then
      local customHorn = getElementData(source, \"tuning.customHorn\") or nil
      
      if customHorn then
         local hornState = getElementData(source, \"customHorn.state\") or false
         
         if hornState then
            local vehicleX, vehicleY, vehicleZ = getElementPosition(source)
      
            vehiclesWithCustomHorns[source] = playSound3D(\"horns/\" .. customHorn .. \".mp3\", vehicleX, vehicleY, vehicleZ, true)
            
            setSoundMaxDistance(vehiclesWithCustomHorns[source], 50)
            attachElements(vehiclesWithCustomHorns[source], source)
            
            outputDebugString(\"[stream in] [custom horn]: driver: \" .. getPlayerName(getVehicleOccupant(source, 0)))
         end
      end
   end
end
)
addEventHandler(\"onClientElementStreamOut\", root,
function()
   if getElementType(source) == \"vehicle\" then
      local customHorn = getElementData(source, \"tuning.customHorn\") or nil
      
      if customHorn then
         if vehiclesWithCustomHorns[source] then
            if isElement(vehiclesWithCustomHorns[source]) then
               stopSound(vehiclesWithCustomHorns[source])
            end
            
            vehiclesWithCustomHorns[source] = nil
            outputDebugString(\"[stream out] [custom horn]: driver: \" .. getPlayerName(getVehicleOccupant(source, 0)))
         end
      end
   end
end
)
addEventHandler(\"onClientVehicleStartExit\", root,
function(_, seat)
   if seat == 0 then
      local customHorn = getElementData(source, \"tuning.customHorn\") or nil
      
      if customHorn then
         toggleControl(\"horn\", false)
         setElementData(source, \"customHorn.state\", false)
      else
         toggleControl(\"horn\", true)
      end
   end
end
)
addEventHandler(\"onClientElementDestroy\", root,
function()
   if getElementType(source) == \"vehicle\" then
      local customHorn = getElementData(source, \"tuning.customHorn\") or nil
      
      if customHorn then
         if vehiclesWithCustomHorns[source] then
            if isElement(vehiclesWithCustomHorns[source]) then
               stopSound(vehiclesWithCustomHorns[source])
            end
            
            vehiclesWithCustomHorns[source] = nil
         end
      end
   end
end
)
function previewHorn(horn)
if horn then
   if fileExists(\"horns/\" .. horn .. \".mp3\") then
      if isElement(previewingHorn) then
         stopSound(previewingHorn)
      end
   
      previewingHorn = playSound(\"horns/\" .. horn .. \".mp3\", false)
   else
      if isElement(previewingHorn) then
         stopSound(previewingHorn)
      end
   
      previewingHorn = nil
   end
else
   if isElement(previewingHorn) then
      stopSound(previewingHorn)
   end
   
   previewingHorn = nil
end
end

 
 

37
Segítségkérés / Mindenkinek eltünik a skinje.
« Dátum: 2017. Január 04. - 21:44:34 »
Bejelentkezéskor nincs véletlenül beállítva a setElementAlpha?

38
Segítségkérés / Égbolt modifikáció
« Dátum: 2017. Január 01. - 00:35:37 »

39
Segítségkérés / Füvek és egyéb dolgok eltávolítása
« Dátum: 2016. December 21. - 12:39:47 »
Szia.
 
A következő linken találhatsz rá megoldást: https://forum.mtasa.com/topic/37704-disable-grass/
 
Ha jól olvastam akkor ezeket csak a collision szerkesztésével tudod kiszedni.

40
Segítségkérés / Hogyan lehetne megoldani? (Mozgó rectangle)
« Dátum: 2016. December 20. - 11:03:15 »

41
Segítségkérés / Variáns, bodykit
« Dátum: 2016. December 03. - 18:52:50 »
A variánsok magában a jármű modelljében vannak benne. (.dff)

42
Segítségkérés / paintjob elcsúszik
« Dátum: 2016. November 14. - 22:31:06 »
3Ds Max, Zmodeler, Photoshop

43
Segítségkérés / paintjob elcsúszik
« Dátum: 2016. November 14. - 12:39:29 »
Mert a módolt járműnek teljesen más az UV Map-je mint az alapnak.

44
Segítségkérés / MTA Crash bejelentkezésnél.
« Dátum: 2016. November 06. - 11:34:28 »
Szia, a következő oldalról próbálj meg pár megoldást:
https://cit2.net/index.php?topic=124510.0

45
Segítségkérés / Paintjob system nem jó :/
« Dátum: 2016. Szeptember 14. - 14:26:54 »
Nem találja az \"avaliblePaintjobs\" táblát, nyilván azért mert elírtad. A helyes: availablePaintjobs

Oldalak: 1 2 [3] 4 5 ... 34
SimplePortal 2.3.7 © 2008-2024, SimplePortal