{"id":1249,"date":"2020-11-08T22:51:18","date_gmt":"2020-11-08T22:51:18","guid":{"rendered":"https:\/\/esx-scripts.com\/?post_type=product&#038;p=1249"},"modified":"2026-08-12T20:02:01","modified_gmt":"2026-08-12T18:02:01","slug":"audio-speaker-script","status":"publish","type":"product","link":"https:\/\/fivemx.com\/pl\/audio-speaker-script\/","title":{"rendered":"Skrypt g\u0142o\u015bnika audio"},"content":{"rendered":"<h2>Placeable ESX speaker for synchronized music<\/h2>\n<p>This resource lets players place a speaker through an item or the <code data-no-translation=\"\">\/speaker<\/code> command. It plays embeddable YouTube sources through a synchronized interface, so nearby players share the same playback state.<\/p>\n<h3>Controls and integration<\/h3>\n<ul>\n<li>Pause, resume and mute playback from the NUI.<\/li>\n<li>Distance-based volume around the placed speaker.<\/li>\n<li>Trigger placement with <code data-no-translation=\"\">TriggerEvent(\"kepo_speaker:place\")<\/code> when wiring it to an ESX item.<\/li>\n<li>YouTube playback depends on the source video allowing embedding.<\/li>\n<\/ul>\n<p>Install the resource, add it to <code data-no-translation=\"\">server.cfg<\/code>, then configure the command or item for your ESX setup.<\/p>","protected":false},"excerpt":{"rendered":"<p>This standalone speaker resource for ESX allows you to use an item (or enter a command) to spawn a sound speaker that plays YouTube music.<\/p>\n<p><strong>KEPO_SPEAKER<\/strong><\/p>\n<ul>\n<li><strong>Synchronized Sound<\/strong>: All players will experience the sound in sync.<\/li>\n<li><strong>Synchronized NUI<\/strong>: User Interface synchronization across all clients.<\/li>\n<li><strong>YouTube Video Playback<\/strong>: Supports embeddable YouTube videos. Note: Some copyrighted and non-copyrighted content may be restricted.<\/li>\n<li><strong>Control Options<\/strong>: Ability to pause, resume, adjust volume based on distance (lower volume for further distances, higher volume for closer distances), and mute the video.<\/li>\n<\/ul>\n<h3>U\u017cycie<\/h3>\n<ul>\n<li>Simply insert a YouTube link to play the music.<\/li>\n<li>Use the command <code>\/speaker<\/code> in-game or create an item in ESX (e.g., a speaker) and use it by triggering <code>TriggerEvent(\"kepo_speaker:place\")<\/code>.<\/li>\n<\/ul>\n<h3>Example Scenarios<\/h3>\n<ul>\n<li>Host a large party with great music.<\/li>\n<li>Play somber music for a funeral setting.<\/li>\n<li>Businesses, like car dealerships, can use it to play appealing music for their customers.<\/li>\n<\/ul>","protected":false},"featured_media":1250,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[96,511],"product_tag":[],"class_list":["post-1249","product","type-product","status-publish","has-post-thumbnail","product_cat-esx-scripts","product_cat-standalone-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product\/1249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/comments?post=1249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media\/1250"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/media?parent=1249"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_brand?post=1249"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_cat?post=1249"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/pl\/wp-json\/wp\/v2\/product_tag?post=1249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}