Jump to content

Custom Crosshairs and Weapon sounds


'LinKin

Recommended Posts

Posted

Hello,

I'd like to know what I must use in oder to change the sounds of weapons when you shoot,

Also, how to change the crosshairs of them.

Which functions must I use? Also, how to hide the default crosshair of weapons?

Regards,

LinKin.

Posted

need these two functions to the sound of weapons

setAmbientSoundEnabled("gunfire", false) 
playSound3D("example.mp3", float x, float y, float z) 

setPlayerHudComponentVisible ( getLocalPlayer(), "crosshair", false ) 
dxDrawImage() --- or you could also use shader. (would not need the 'setPlayerHudComponentVisible')  

for the crosshair, perhaps...

Posted
setCameraTarget(player,x,y,z)  

If you don't like MTA's cross hair then you can make a custom one or if you simply wanna render a cross hair then I think you can read the post below. ;-)

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...