Witamy na GTAOnline Obecny czas to 2018-08-19, 06:33 Użytkowników: 75694
Strona główna | Użytkownicy | Grupy | Faq | Regulamin | Zaloguj

GTAONLINE.PL
Tematy otagowane jako: kryptonimu
1. Nie nadaje kryptonimu
Kod Client: [lua]addEventHandler("onClientResourceStart", resourceRoot,function()
for i,v in ipairs(getElementsByType("vehicle")) do
if getElementData(v, "Unit") then
shader = dxCreateShader('texreplace.fx')
shaderek = dxCreateShader('shader.fx')

local unit = getElementData(v, "Unit")
if unit == 1 then

texture = dxCreateTexture('files/SF01.png')
dxSetShaderValue(shader,'gTexture',texture)
engineApplyShaderToWorldTexture(shader,"224",v)
textures = dxCreateTexture('files/SF01.png')
dxSetShaderValue(shaderek,'gTexture',textures)
engineApplyShaderToWorldTexture(shaderek,"03",v)

elseif unit == 2 then

texture2 = dxCreateTexture('files/SF02.png')
dxSetShaderValue(shader,'gTexture',texture2)
engineApplyShaderToWorldTexture(shader,"224",v)
textures = dxCreateTexture('files/SF02.png')
dxSetShaderValue(shaderek,'gTexture',textures)
engineApplyShaderToWorldTexture(shaderek,"03",v)

end
end
end
end)

addEventHandler("onClientResourceStart", resourceRoot,function()
for i,v in ipairs(getElementsByType("vehicle")) do
if getElementData(v, "Unit2") then
shader = dxCreateShader('texreplace.fx')

local unit2 = getElementData(v, "Unit2")
if unit2 == 1 then
textury1 = dxCreateTexture('files/SF01.png')
dxSetShaderValue(shader,'gTexture',textury1)
engineApplyShaderToWorldTexture(shader,"vehiclegrunge25",v)
elseif unit2 == 2...




phpBB by Przemo modified by xXx 2003-2016

Template GTAONLINE created by gtaonline.pl



Strona wygenerowana w 0,04 sekundy. Zapytań do SQL: 8