addEventHandler("onClientResourceStart", resourceRoot, function()
setSkyGradient(0, 252, 0, 124, 252, 0)
setWaterColor(124, 252, 0, 260)
setCloudsEnabled(false)
engineImportTXD(engineLoadTXD("gta_tree_palm2.txd"), 621)
engineReplaceModel(engineLoadDFF('veg_palm02.dff', 0), 621)
engineImportTXD(engineLoadTXD("gta_tree_palm.txd"), 622)
engineReplaceModel(engineLoadDFF("veg_palm03.dff", 622), 622)
engineImportTXD(engineLoadTXD("ballypillar01.txd"), 3437)
outputChatBox(" ")
outputChatBox("Press #7cfc00'M'#FFFFFF to toggle the music On/Off.", 255, 255, 255, true)
--outputChatBox("[#7cfc00MAP#FFFFFF]#7cfc00 #FFFFFF[#7cfc00DM#FFFFFF] #7cfc00Surge: Green Day", 255, 255, 255, true)
outputChatBox("[#7cfc00MUSIC#FFFFFF] #7cfc00Green Day: Boulevard Of Broken Dreams", 255, 255, 255, true)
toggleSong()
end)
function makeRadioStayOff()
setRadioChannel(0)
cancelEvent()
end
function toggleSong()
if not song then
song = playSound("music.mp3", true)
songOff = true
end
if not songOff then
setSoundVolume(song, 0)
songOff = true
removeEventHandler("onClientPlayerRadioSwitch", root, makeRadioStayOff)
else
setSoundVolume(song, 1)
songOff = false
setRadioChannel(0)
addEventHandler("onClientPlayerRadioSwitch", root, makeRadioStayOff)
end
end
addEventHandler("onClientPlayerVehicleEnter", root, function()setRadioChannel(0)end)
addCommandHandler("music", toggleSong)
bindKey("m", "down", "music")
{"text":"text","html5":"html","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"lua","bash":"sh","erlang":"erlang","go":"golang","c":"c_cpp","cpp":"c_cpp","diff":"diff","latex":"latex","sql":"sql","xml":"xml","0":"text","abap":"abap","actionscript":"actionscript","actionscript3":"actionscript","ada":"ada","apache":"apache_conf","applescript":"applescript","asm":"assembly_x86","autohotkey":"autohotkey","closure":"closure","cobol":"cobol","coffeescript":"coffee","cpp-winapi":"c_cpp","c_loadrunner":"c_cpp","c_mac":"c_cpp","c_winapi":"c_cpp","csharp":"csharp","d":"d","dart":"dart","dot":"dot","eiffel":"eiffel","fortran":"fortran","groovy":"groovy","haskell":"haskell","haxe":"haxe","ini":"ini","io":"io","java":"java","java5":"java","make":"makefile","matlab":"matlab","mysql":"mysql","objc":"objectivec","ocaml":"ocaml","pascal":"pascal","perl":"perl","perl6":"perl","postgresql":"pgsql","powershell":"powershell","prolog":"prolog","properties":"properties","rails":"ruby","rust":"rust","scala":"scala","scheme":"scheme","smarty":"smarty","tcl":"tcl","vala":"vala","vb":"vbscript","verilog":"verilog","vhdl":"vhdl","yaml":"yaml"}