Search the Community
Showing results for tags 'sounds'.
-
This is the code: requestBrowserDomains({"www.convertmp3.io"}) local browser = createBrowser( 0, 0, false ) local currentSound = {} function start(_,link) fetch(link) end addCommandHandler("play",start) function fetch(url) if (url) then fetchRemote("http://www.convertmp3.io/fetch/?format=JSON&video="..url, callback) end end function callback(data, error) if (error ~= 0) then return outputChatBox(error) end if (data == "ERROR") then return outputChatBox("data error") end local data = fromJSON("["..data.."]") if (data) then outputChatBox("Title: "..data.title) outputChatBox("Length: "..data.length) outputChatBox("Link: "..data.link) loadBrowserURL( browser, data.link ) end end addEventHandler( "onClientBrowserNavigate", browser, function( link ) if not link:find("www.convertmp3.io") then local vehicle = getPedOccupiedVehicle ( localPlayer ) local x, y, z = getElementPosition(vehicle) currentSound[localPlayer] = playSound3D( link, x, y, z ) attachElements(currentSound[localPlayer],vehicle) setSoundMaxDistance(currentSound[localPlayer],30) setSoundVolume(currentSound[localPlayer],50) end end ) How to synchronise to all players?
-
Hello, My Name Is Flowence, I don't understand anything about programming and Moon, and I am passionate about a resource, but I don't know how to program it, I would like to ask for help the comunity <3 The resource is from the sound of the car engine, that is to change the standard sound of the cars, can anyone help me?
-
buenos dias a todos, quiero saber si se pueden modificar los sonidos de las sirenas de policia y que todos los jugadores la puedan escuchar si estan cerca, si se puede alguien me dice por favor? gracias
-
Hi guys. One year ago I was start developing "Police radio hotkey system" based on original police radio sound from gta. In GTA:SA it's based on parts of different sound packs, relative to player situation (state). Now, I will found my resource and don't want do develop it (have no time), but You can. Usage. For example, I ride on black Bravura vehicle form East Los Santos and shoot to people - POLICE RADIO: "37 in" + "dark" + "four door" + " + "suspect last seen" + "east Los Santos". And so on. As you understood, you can use this sound to make custom radio message for other cops on your server by binding buttons or making some Radial System, Idk. This code not so clear, but you can understand him. Fork project, develop him and do what you want. Script is very easy, but I spent some time to found this police sounds. List of sounds. Full code on Github: https://github.com/draobrehtom/mta-police-radio