-
Posts
1,412 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
no image no "N/A" and debug: 705:Bad usage @ 'dxDrawImage' [Can't load file]
-
il get it and i replace this elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) to this elseif column.name == "Ranks" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) but is dont show everythink
-
you know how make images ranks in scoreboard plis
-
i dont download that resource . i download scoreboard in link description scoreboard :\mods\deathmatch\resources\[gameplay] (And replaced) http://www.mediafire.com/?ca68kne6aq1dhkb
-
i get link download scoreboard on this: https://community.multitheftauto.com/index.php?p= ... ls&id=4019
-
i change some think but is show me (ranks) exports["scoreboard"]:scoreboardAddColumn ( "Ranks", root, 20, "R", 1) function showranks( ) for index, player in ipairs ( getElementsByType "player" ) do local r = getElementData(player,"level") if not r then setElementData( player, "Ranks", r ) else setElementData( player,"Ranks","ranks/lvl_"..r..".png") end end end setTimer ( showranks, 500, 0 )
-
thx i need this is show me N/A and level working exports["scoreboard"]:scoreboardAddColumn ( "Ranks", root, 20, "R", 1) function showranks( source ) local r = getElementData(source,"level") if not r then setElementData( source, "Ranks", "N/A" ) else setElementData(source,"Ranks","ranks/lvl_"..r..".png") end end addEventHandler( "onResourceStart", resourceRoot, function( ) for k,v in ipairs( getElementsByType( "player" ) ) do showranks( v ) end end ) addEventHandler( "onPlayerJoin", root, showranks )
-
Bad argument @ 'setElmentDate' [Expexted argument at argument 3, got none]
-
use this you will make windown image easy like DX guiCreateStaticImage
-
i try all in description but nothing
-
i download it and all in Description but not working
-
hi guys i want ask how make image in scoreboard like this:
-
addEventHandler ( "onPlayerLogin", getRootElement ( ), function ( _, theCurrentAccount ) setPlayerName ( source, theCurrentAccount ) end ) addEventHandler ( "onPlayerChangeNick", getRootElement ( ), function ( ) cancelEvent() end )
-
balahi tnajam ta3mlheli ?
-
oh opss addEventHandler ( "onClientResourceStart", getResourceRootElement( getThisResource() ), function ( ) for k, theVehicle in ipairs ( getElementsByType( "vehicle" ) ) do if (getElementData(theVehicle,"BackLight")) then local texture = dxCreateTexture ( "light.png", "dxt5" ) local shader = dxCreateShader ( "texture.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) --shader replaced engineApplyShaderToWorldTexture ( shader, "headlight1", theVehicle ) engineApplyShaderToWorldTexture ( shader, "headlight", theVehicle ) --shader removed engineApplyShaderToWorldTexture ( shader, "coronastar", theVehicle ) engineApplyShaderToWorldTexture ( shader, "coronaringb", theVehicle ) engineApplyShaderToWorldTexture ( shader, "coronareflect", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_bike", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_car", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_exp", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_ped", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_heli", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_rcbaron", theVehicle ) engineApplyShaderToWorldTexture ( shader, "coronaheadlightline", theVehicle ) end end end ) addEventHandler ( "onClientElementStreamIn", root, function ( ) if (getElementType ( source ) == "vehicle" ) then if (getElementData(source,"BackLight")) then local texture = dxCreateTexture ( "light.png", "dxt5" ) local shader = dxCreateShader ( "texture.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) --shader replaced engineApplyShaderToWorldTexture ( shader, "headlight1", source ) engineApplyShaderToWorldTexture ( shader, "headlight", source ) --shader removed engineApplyShaderToWorldTexture ( shader, "coronastar", source ) engineApplyShaderToWorldTexture ( shader, "coronaringb", source ) engineApplyShaderToWorldTexture ( shader, "coronareflect", source ) engineApplyShaderToWorldTexture ( shader, "shad_bike", source ) engineApplyShaderToWorldTexture ( shader, "shad_car", source ) engineApplyShaderToWorldTexture ( shader, "shad_exp", source ) engineApplyShaderToWorldTexture ( shader, "shad_ped", source ) engineApplyShaderToWorldTexture ( shader, "shad_heli", source ) engineApplyShaderToWorldTexture ( shader, "shad_rcbaron", source ) engineApplyShaderToWorldTexture ( shader, "coronaheadlightline", source ) end end end )
-
good i have other problem its not working and no error addEventHandler ( "onClientResourceStart", getResourceRootElement( getThisResource() ), function ( ) for k, theVehicle in ipairs ( getElementsByType( "vehicle" ) ) do if (getElementData(theVehicle,"BackLight")) then local texture = dxCreateTexture ( "light.png", "dxt5" ) local shader = dxCreateShader ( "texture.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) --shader replaced engineApplyShaderToWorldTexture ( shader, "headlight1", theVehicle ) engineApplyShaderToWorldTexture ( shader, "headlight", theVehicle ) --shader removed engineApplyShaderToWorldTexture ( shader, "coronastar", theVehicle ) engineApplyShaderToWorldTexture ( shader, "coronaringb", theVehicle ) engineApplyShaderToWorldTexture ( shader, "coronareflect", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_bike", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_car", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_exp", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_ped", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_heli", theVehicle ) engineApplyShaderToWorldTexture ( shader, "shad_rcbaron", theVehicle ) engineApplyShaderToWorldTexture ( shader, "coronaheadlightline", theVehicle ) end end end ) addEventHandler ( "onClientResourceStart", root, function ( ) if (getElementType ( source ) == "vehicle" ) then if (getElementData(source,"BackLight")) then local texture = dxCreateTexture ( "light.png", "dxt5" ) local shader = dxCreateShader ( "texture.fx" ) dxSetShaderValue ( shader, "gTexture", texture ) --shader replaced engineApplyShaderToWorldTexture ( shader, "headlight1", source ) engineApplyShaderToWorldTexture ( shader, "headlight", source ) --shader removed engineApplyShaderToWorldTexture ( shader, "coronastar", source ) engineApplyShaderToWorldTexture ( shader, "coronaringb", source ) engineApplyShaderToWorldTexture ( shader, "coronareflect", source ) engineApplyShaderToWorldTexture ( shader, "shad_bike", source ) engineApplyShaderToWorldTexture ( shader, "shad_car", source ) engineApplyShaderToWorldTexture ( shader, "shad_exp", source ) engineApplyShaderToWorldTexture ( shader, "shad_ped", source ) engineApplyShaderToWorldTexture ( shader, "shad_heli", source ) engineApplyShaderToWorldTexture ( shader, "shad_rcbaron", source ) engineApplyShaderToWorldTexture ( shader, "coronaheadlightline", source ) end end end )