0 Üye ve 1 Ziyaretçi konuyu incelemekte.
local texture = dxCreateTexture( "lapd.png" )addCommandHandler( "jacket", function( cmd ) local shader = dxCreateShader( "shader.fx", 0, 0, true, "ped" ) setElementModel( localPlayer, 280 ) engineApplyShaderToWorldTexture( shader, "lapd1", localPlayer ) dxSetShaderValue( shader, "gTexture", texture ) outputChatBox( "Skin used." ) end)
texture gTexture;technique TexReplace{ pass P0 { Texture[0] = gTexture; }}
local shaderfx = [[ texture tex0; technique TexReplace { pass P0 { Texture[0] = tex0; } }]]local shader = dxCreateShader(shaderfx,0,0,false,"ped")function kaplamaver(oyuncu) if isElement(oyuncu) then local texture = dxCreateTexture("lapd.png") setElementModel(localPlayer,280) engineApplyShaderToWorldTexture(shader,"lapd1",oyuncu) dxSetShaderValue(shader,"tex0",texture) outputChatBox("Skin used." ) endendaddCommandHandler("skin",function() kaplamaver(localPlayer)end)
Client.sideKodlocal shaderfx = [[ texture tex0; technique TexReplace { pass P0 { Texture[0] = tex0; } }]]local shader = dxCreateShader(shaderfx,0,0,false,"ped")function kaplamaver(oyuncu) if isElement(oyuncu) then local texture = dxCreateTexture("lapd.png") setElementModel(localPlayer,280) engineApplyShaderToWorldTexture(shader,"lapd1",oyuncu) dxSetShaderValue(shader,"tex0",texture) outputChatBox("Skin used." ) endendaddCommandHandler("skin",function() kaplamaver(localPlayer)end)