Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/04/21 in all areas

  1. local SHADER_CODE = [===[ float3 g_f3Color = (float3)0.0; struct PSInput { float4 Position : POSITION0; float2 TexCoord : TEXCOORD0; }; float4 PixelShaderFunction ( PSInput PS ) : COLOR0 { return float4( g_f3Color, 1.0 - PS.TexCoord.x ); }; technique { pass P0 { PixelShader = compile ps_2_a PixelShaderFunction(); } } ]===]; local _dxDrawRectangle = dxDrawRectangle; local g_pShader = dxCreateShader( SHADER_CODE ); function dxDrawRectangle( fX, fY, fWidth, fHeight, pColor, bPostGUI, bLerpAlpha ) if ( not bLerpAlpha ) then _dxDrawRectangle( fX, fY, fWidth, fHeight, pColor, bPostGUI ); else dxSetShaderValue( g_pShader, "g_f3Color", pColor ); dxDrawImage( fX, fY, fWidth, fHeight, g_pShader, 0, 0, 0, -1, bPostGUI ); end end; addEventHandler( "onClientRender", root, function ( ) dxDrawRectangle( 600, 400, 256, 256, { 0, 0, 0 }, false, true ); end ); Please put a reaction to the message, it is on the bottom right. Don't be indifferent.
    2 points
  2. if (getPedWeapon (thePlayer, 5) == 31) then -- Se o jogador tem uma M4 no slot 5, então: -- CODE end
    1 point
  3. Bom, eu alterei as aspas duplas pra aspas simples e simplesmente funcionou kkk, não sei ao certo o motivo, mas n vou reclamar...
    1 point
  4. it says valid 50-4000 so yeah maybe 100 is valid though idk ill try.
    1 point
  5. @Rakashy a lógica está correta, mas talvez você não tenha feito corretamente. O processo - ao meu ver - para fazer isso que você quer, seria da seguinte forma:
    1 point
  6. -- # لمن يرسبن addEventHandler ( 'onPlayerSpawn' , root , function ( ) for Index , Value in pairs ( { [ 69 ] = 999 , [ 70 ] = 999 , [ 71 ] = 999 , [ 72 ] = 999 , [ 73 ] = 500 , [ 74 ] = 999 , [ 75 ] = 500 , [ 76 ] = 999 , [ 77 ] = 999 , [ 78 ] = 999 , [ 79 ] = 999 , [ 160 ] = 999 } ) do setPedStat ( source , Index , Value + 1 ) end end ) -- # لمن المود يشتغل addEventHandler ( 'onResourceStart' , resourceRoot , function ( ) for Index , Value in pairs ( { [ 69 ] = 999 , [ 70 ] = 999 , [ 71 ] = 999 , [ 72 ] = 999 , [ 73 ] = 500 , [ 74 ] = 999 , [ 75 ] = 500 , [ 76 ] = 999 , [ 77 ] = 999 , [ 78 ] = 999 , [ 79 ] = 999 , [ 160 ] = 999 } ) do for _ , Players in ipairs ( getElementsByType( 'player' ) ) do setPedStat ( Players , Index , Value + 1 ) end end end )
    1 point
  7. As soon as I get free from work, I will give a ready-made code.
    1 point
  8. Try creating something like this in a shader (it's really easy) or make a similar background in Photoshop.
    1 point
  9. Does not matter. I can decompile both. Good for you, now go eat an apple in the sunset. We don't need scumbag thieves. Stop throwing words at me, which I don't deserve. I am not going to tell anybody how to do it nor abuse it myself to steal scripts - I can do my own and without server scripts it's pretty pointless. To be honest, one of the safest ways is to disable the script caching in the first place.
    1 point
×
×
  • Create New...