Jump to content

Crosshair visible


Oussema

Recommended Posts

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 

Link to comment
addEventHandler("onClientPlayerWeaponSwitch",root,function(pSlot,nSlot)
  if (getPedWeapon(localPlayer,nSlot) == 31) then
      showPlayerHudComponent ("crosshair",true)
  else
      showPlayerHudComponent ("crosshair",false)
  end
end);

 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...