hi guys i am making my own mta sa dayz server so i decided to add more weapons on it and yes the weapons wokrs but when i try to aim the sniper it goes bug.
but i already try this
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 end end end )