HɪᴅᴅᴇN Posted September 28, 2018 Share Posted September 28, 2018 Hi guys how to add new weapons to mta server ? ( Not Model ) Is it easy? Is hard Is it impossible? Is it possible? Link to comment
Dimos7 Posted September 28, 2018 Share Posted September 28, 2018 You can create costum weapons and use shader createWeapon dxCreateShader dxCreateTexture dxSetShaderValue engineApplyShaderToWorldTexture Link to comment
TheGam3r23 Posted September 28, 2018 Share Posted September 28, 2018 So you can create and add new weapons without over writing the old ones? Link to comment
NeXuS™ Posted September 28, 2018 Share Posted September 28, 2018 It's more complicated than that. The createWeapon function doesn't create a player held weapon, but a weapon on the world. You can use models, attach it to the players body, and create a custom damage system. You'd have to create a texture that would hide the "default" weapon that the player is holding all the time. Then using that custom damage system, you'd be able to create weapons till you'd run out of usable world models that you'd overwrite. Link to comment
AlexRazor Posted September 29, 2018 Share Posted September 29, 2018 Make default weapons invisible by txd or other ways, use bone_attach resource to add models of "weapons" and attach them to hands, mute default sounds and add sounds by OnClientPlayerWeaponFire and then add custom damage and etc through scripting. Link to comment
LyricalMM Posted September 30, 2018 Share Posted September 30, 2018 use scripts from an open source dayz resource, there could be some usefull functions and scripts or you can create a new weapon using bone_attach, elementData, the new IFP functions and any other weapon models you could found on the internet. on adding vehicles i don't think so 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