Jump to content

Adding a New Weapon?


Recommended Posts

Posted

Is it possible to add a new weapon for real MTA use? Like say, for example, edit the weapons.xml inside the freeroam resource and add a new weapon? I kind of doubt this because I think that the weapons are built into GTA instead of externally defined, but I was still wondering...

Posted

if you will rebuild GUI, and script a lot, there is a way to script new weapon. it will be a much to code anyway, but you can try, but dont except us to do it

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

You can't add a weapon in a way that GTA would understand it as a new weapon. But scripting lets you 'edit' the weapons. Let's say you want to change damage inflicted by a certain weapon. To do that, you can attach player damage event to a function that checks which weapon caused damage and set player's health to something else. With Lua you can even add new functionality, such as this:

-

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