Jump to content

Bence2004

Members
  • Content Count

    38
  • Joined

  • Last visited

Everything posted by Bence2004

  1. - t ad vissza mindig megvan köszi! for i in string.gmatch("2020-20-22", "%d+") do table.insert(asd, i) end
  2. Segítség kéne. local datum = "2020-02-10" -- ez kéne így: local datum = {2020, 02, 10} -- output megoldás vagy függvénynév?
  3. https://community.multitheftauto.com/index.php?p=resources&s=details&id=18208 use external links DONE
  4. Show video: Download: https://community.multitheftauto.com/?p=resources&s=details&id=18204
  5. Unatkoztam, és elkezdtem magyarosítani és alakítgatni egy CSRW játékmódot. Hát ez lett belőle: https://www.youtube.com/watch?v=w42MxGoA0us
  6. Sorry, this is a bug, I fixed it! And this is dX. If you found bug, write comment on community or forum page. https://imgur.com/hvtik71
  7. GTA: V Designed Login screen Included with login screen. Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=18162
  8. Show video: Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=18203
  9. How I use dxCreateShader on weapon? What should be elementTypes? dxCreateShader ( string filepath / string raw_data [, float priority = 0, float maxDistance = 0, bool layered = false, string elementTypes = "world,vehicle,object,other" ] )
  10. Bence2004

    Skinsystem

    I want to create a skin system similar to csgo. Changes the texture of your player's weapon as you log in or touch it etc.Can somebody help me?
  11. local weaponsWithSkin = {} function applyWeaponSkin (itemid) local shaderName = premiumItems[itemid][3] local shaderID = itemid setElementData(localPlayer, "weaponShaderID", shaderID) setElementData(localPlayer, "weaponShaderName", shaderName) setWeaponStickerC(localPlayer, shaderName, shaderID) end addEvent("applySkin", true) addEventHandler("applySkin", root, applyWeaponSkin) addEventHandler("onClientResourceStart", resourceRoot, function() for k, v in ipairs(getElementsByType("player")) do local weaponShaderName = getElementData(v, "weaponShaderName") or 0 local weaponShaderID
  12. For example, I have 2 weapons at a time and I want to use different textures on both.
  13. local weaponsWithSkin = {} function applyWeaponSkin (itemid) local shaderName = premiumItems[itemid][3] local shaderID = itemid setElementData(localPlayer, "weaponShaderID", shaderID) setElementData(localPlayer, "weaponShaderName", shaderName) setWeaponStickerC(localPlayer, shaderName, shaderID) end addEvent("applySkin", true) addEventHandler("applySkin", root, applyWeaponSkin) addEventHandler("onClientResourceStart", resourceRoot, function() for k, v in ipairs(getElementsByType("player")) do local weaponShaderName = getElementData(v, "weaponShaderName") or 0 local weaponShaderID
  14. A "{3}" stringből hogyan hámozzam ki a 3-mas számot?
  15. Fine, thanks.Sorry I'm clumsy in HLSL
  16. Not working this, the applied texture is full black.
  17. I would like the weapon preview that uses fx_pre_object.fx to change the texture with texturechange.fx. So I want to knit these two together.
  18. fx_pre_object.fx + texturechanger.fx coordination with correct tlighting. fx_pre_object.fx // // fx_pre_object.fx // //--------------------------------------------------------------------- // Variables //--------------------------------------------------------------------- float3 sElementOffset = float3(0,0,0); float3 sWorldOffset = float3(0,0,0); float3 sCameraPosition = float3(0,0,0); float3 sCameraForward = float3(0,0,0); float3 sCameraUp = float3(0,0,0); float sFov = 1; float sAspect = 1; float2 sMoveObject2D = float2(0,0); float2 sScaleObject2D = float2(1,1); float sAlphaMult
  19. Hogyan tudnám megvalósítani azt, hogy objekt előrenézet során (objectpreview használata során) megváltozzon az objektum texturája? (Át szeretném vinni a texturechanger.fx-t)
  20. Köszönöm a segítséget! Megoldottam, a fegyvert objectként jelenítettem meg.
×
×
  • Create New...