Oussema Posted March 16, 2017 Posted March 16, 2017 hello everyone . if is there way to make crosshair visible just for 1 weapon ?? example : for M4 , so the crosshair shows for all weapons only M4 no why i need this ?? : acutely i'm using Custom crosshair script with dxdrawimage , but now i'm making Traffic unit job so i need make the default Camera crosshair work and others weaopn not work !! please give me any solution for that
Fist Posted March 16, 2017 Posted March 16, 2017 addEventHandler("onClientPlayerWeaponSwitch",root,function(pSlot,nSlot) if (getPedWeapon(localPlayer,nSlot) == 31) then showPlayerHudComponent ("crosshair",true) else showPlayerHudComponent ("crosshair",false) end end);
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