Alraaayts Posted August 15, 2020 Share Posted August 15, 2020 I start running a dayz server, i add more weapons on it... All works fine except the snipers.... https://m.imgur.com/a/aZvvU the photo not minee but the same problem. Link to comment
Moderators Patrick Posted August 15, 2020 Moderators Share Posted August 15, 2020 I assume the weapon is an object, so you need to set object's alpha to 0 when player aiming. Link to comment
Alraaayts Posted August 16, 2020 Author Share Posted August 16, 2020 23 hours ago, Patrick said: I assume the weapon is an object, so you need to set object's alpha to 0 when player aiming. It is already but still noo Link to comment
Moderators Patrick Posted August 16, 2020 Moderators Share Posted August 16, 2020 2 hours ago, Alraaayts said: It is already but still noo I'm sure it's not, if you can see it. Link to comment
Alraaayts Posted August 17, 2020 Author Share Posted August 17, 2020 (edited) Here it is bro... Take a look at here. https://imgur.com/a/TWmdh7t 21 hours ago, Patrick said: I'm sure it's not, if you can see it. Here take a loook..... https://imgur.com/a/TWmdh7t https://imgur.com/a/Ju9GdxM Edited August 17, 2020 by Alraaayts Link to comment
Alraaayts Posted August 21, 2020 Author Share Posted August 21, 2020 On 17/08/2020 at 06:36, Patrick said: I'm sure it's not, if you can see it. Bro help please Link to comment
Moderators Patrick Posted August 21, 2020 Moderators Share Posted August 21, 2020 (edited) 16 minutes ago, Alraaayts said: Bro help please Don’t expect from me to tell you what’s wrong in the code from phone screenshots. Here is a good tutorial how to debug your codes: Edited August 21, 2020 by Patrick Link to comment
RekZ Posted September 23, 2020 Share Posted September 23, 2020 Put this in to a client side lua local alpha = 255 bindKey ( "aim_weapon", "both", function ( _, state ) if getPedWeaponSlot(localPlayer) == 6 or getPedWeaponSlot(localPlayer) == 5 then if ( state == "down" ) then alpha = 0 elseif ( state == "up" ) then alpha = 255 end if getPedWeapon(localPlayer) == 34 then for _, v in ipairs ( getElementsByType("object",resourceRoot,true) ) do if isElementAttachedToBone ( v ) then if getPedWeaponSlot (localPlayer) == 6 then setElementAlpha ( v, alpha ) end end end end end end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now