Bom estou tendo o seguinte problema com as sniper da minha gm quando miro rapido a textura da arma fica na frente, me passaram esse codigo deu certo por enquanto mira rapido o bug volta
local alpha = 255 bindKey ( "aim_weapon", "both", function ( _, state ) if getPedWeaponSlot ( localPlayer ) == 6 then if ( state == "down" ) then alpha = 0 elseif ( state == "up" ) then alpha = 255 end for _, v in ipairs ( getElementsByType ( "object", root, true ) ) do if isElementAttachedToBone ( v ) then local id = getElementModel ( v ) if ( id == 2584 ) setElementAlpha ( v, alpha ) end end en
https://imgur.com/a/aZvvU
Well I'm having the following problem with my gm's sniper when I aim quickly, the texture of the weapon is in front, they gave me this code it worked for now, quickly aim the bug back.