'LinKin Posted October 24, 2014 Share Posted October 24, 2014 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. Link to comment
Enargy, Posted October 24, 2014 Share Posted October 24, 2014 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... Link to comment
Saml1er Posted October 24, 2014 Share Posted October 24, 2014 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. 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