Jump to content

Paantry

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Paantry's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Sim tenho as texturas, eu só não não sei aonde colocar a linha "dxCreatureTexture" dentro desse .lua por exemplo "tshirtwhite"
  2. Peguei do proprio forum mta. Quero utilizar também pra colocar CJ de 3 cores.. Branco, negro etc Aqui está o shader texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } }
  3. Passa seu contato
  4. -- Server function SetPedClothes( ped, clothesTexture, clothesModel, clothesType ) local data = { ClothesTexture = clothesTexture; ClothesModel = clothesModel; ClothesType = clothesType; }; setElementData( ped, "clothes", data ); return addPedClothes( ped, clothesTexture, clothesModel, clothesType ); end -- Client function OnClientElementDataChange( dataName, oldValue ) if getElementType( source ) == "player" and dataName == "clothes" then local value = getElementData( source ); if not value then engineRemoveShaderFromWorldTexture( source.ClothesShader, value.ClothesModel, source ); source.ClothesShader.Destroy(); return; end if source.ClothesShader then source.ClothesShader.Destroy(); source.ClothesShader = null; end -- для каждого педа нужен свой шейдер, так как шейдер имеет свои значения под конкретного игрока! -- сам шейдер конечно же нужно где-то хранить. -- source.ClothesShader - это для примера. У себя реализуйте по своему. source.ClothesShader = dxCreateShader( "files/shaders/replace.fx", 0, 0, true, 'ped' ); -- Где-то и текстуру храните (какой-то конфиг в виде глобального массива или что там увас) dxSetShaderValue( source.ClothesShader, "gTexture", ?.Texture ); engineApplyShaderToWorldTexture( source.ClothesShader, clothesModel, source ); end end -- Примерно так же и со стриммером Peguei esse código aqui pra trocar as roupas do CJ em shader.. Como faço pra usar esse código e trocar a camisa "tshirtwhite.txd" por exemplo? Não sei nada de .lua, me desculpem
  5. Não consegui achar nenhum sistema, como posso fazer pra cada grupo nascer com certa skin?
  6. Gostaria de trocar o CJ, como se fosse no GTA offline, a player.img, há como eu fazer isso?
×
×
  • Create New...