Jump to content
Mr. Green Gaming

[MTA]-Mix Server- [SH]-My Turn!!


MrMatrix

Recommended Posts

Need My song on this Map :(

 

If you want to add music, download here the music lua file. Add this file to your map folder. Then, add this code to your meta.xml below the third  line. (below </map>)

<script src="music.lua" type="client" /><file src="music.mp3" />

Something like this:

<info gamemode="race" racemode="shooter" type="map" name="[SH] Z0MG I" author="neox." version="1.0.0" description="Song: Different Heaven & EH!DE - My Heart"></info>    <map src="sh-zomg1.map" dimension="0"></map>    <script src="music.lua" type="client" />    <file src="music.mp3" />    <settings>        <setting name="#skins" value='[ "random" ]'></setting>        <setting name="#maxplayers" value="[ 128 ]"></setting>        <setting name="#useLODs" value="[ false ]"></setting>        <setting name="#gamespeed" value="[ 1 ]"></setting>        <setting name="#ghostmode" value='[ "false" ]'></setting>        <setting name="#time" value="0:0"></setting>        <setting name="#vehicleweapons" value='[ "true" ]'></setting>        <setting name="#minplayers" value="[ 0 ]"></setting>        <setting name="#weather" value="[ 10 ]"></setting>        <setting name="#gravity" value="[ 0.0080000003799796104 ]"></setting>        <setting name="#waveheight" value="[ 0 ]"></setting>        <setting name="#respawntime" value="[ 5 ]"></setting>        <setting name="#locked_time" value="[ true ]"></setting>        <setting name="#duration" value="[ 1800 ]"></setting>        <setting name="#respawn" value='[ "none" ]'></setting>    </settings>    <script src="mapEditorScriptingExtension_s.lua" type="server"></script>    <script src="mapEditorScriptingExtension_c.lua" type="client" validate="false"></script></meta>

To finish, download the song that you want to add to the map, paste it to your map folder and change the mp3 file name to: music

Edited by neox.
Link to comment

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