Jump to content
Mr. Green Gaming

[Tutorial] How To Add Horn


Guest AleksCore

Recommended Posts

Guest AleksCore
Posted (edited)

Learn this before you continue reading.

 

If you already familiar with GitHub - you can add horn by yourself and SDK or other admins will accept or decline it.
If you aren't familiar with GitHub, visit this topic.
 
Let's go.

 

Resource responsible for horns called "gcshop". Location of this resource is: "Mr.Green-MTA-Resources\resources\[gameplay]\gcshop". So all our operations will be only inside this folder.

 

 

Step 1. Go to "\gcshop\horns\files" folder and scroll down to find out the index number for a last horn. Right now the last horn for me is "162.mp3". So our new horn will have index number "163". Rename your horn and copy in this folder.

 

Step 2. Open horns_c.lua (location: gcshop\horns\horns_c.lua) using notepad and find the line that starting with:   [162] =  

 

For me it's:

 

   [162] = "OH. MY. GOD.",  

 

And after this line add new line:

 

  [163] = "nice meme",  

 

Don't close this file yet, now find the next line that starting with: [162] = 

 

For me it's:

 

  [162] = "mp3",

 

So I add this line as next:

 

  [163] = "mp3",

 

Now our work with "horns_c.lua" is complitely done, so we can save this file and close.

 

Step 3. Open meta.xml (location: gcshop\meta.xml) using notepad and search for this line:

 

<file src="horns\files\162.mp3" download="false"/>

 

Add new line for your new horn:

 

<file src="horns\files\163.mp3" download="false"/>

 

 

That's all!

Edited by AleksCore
Guest F1MADKILLER
Posted

So when you've got installed github desktop and make a change does it automatically update to ask SDK for permision to change it?

SDK or Ywa have to accept AMG

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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