{"id":93579,"date":"2024-02-05T09:21:58","date_gmt":"2024-02-05T08:21:58","guid":{"rendered":"https:\/\/fivem-mods.net\/?p=93579"},"modified":"2026-06-24T17:40:37","modified_gmt":"2026-06-24T15:40:37","slug":"npc-yogunlugu-nasil-azaltilir","status":"publish","type":"post","link":"https:\/\/fivemx.com\/tr\/how-to-reduce-npcs-density\/","title":{"rendered":"FiveM&#039;de NPC Yo\u011funlu\u011fu Nas\u0131l Azalt\u0131l\u0131r"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Bazen, sunucu performans\u0131n\u0131 iyile\u015ftirmek veya belirli oyun senaryolar\u0131 olu\u015fturmak i\u00e7in oyun d\u00fcnyas\u0131nda oynanamayan karakterlerin (NPC&#039;ler) say\u0131s\u0131n\u0131 veya yo\u011funlu\u011funu azaltmak isteyebilirsiniz. Bu e\u011fitimde, FiveM&#039;de NPC&#039;leri nas\u0131l azaltaca\u011f\u0131n\u0131z\u0131 g\u00f6sterece\u011fiz.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Not<\/strong>: NPC yo\u011funlu\u011funu azaltmak FiveM&#039;de sunucu taraf\u0131 betikleme konusunda biraz bilgi gerektirebilir. FiveM sunucunuza y\u00f6netici eri\u015fiminiz oldu\u011fundan ve Lua betikleme konusunda temel bir anlay\u0131\u015fa sahip oldu\u011funuzdan emin olun.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u00d6n ko\u015fullar<\/strong>:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Bir FiveM sunucusu.<a href=\"https:\/\/fivemx.com\/tr\/fivem-sunucusu-nasil-olusturulur\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/fivemx.com\/how-to-create-a-fivem-server\/\" rel=\"noreferrer noopener\">Kurulum nas\u0131l yap\u0131l\u0131r<\/a>)<\/li>\n\n\n\n<li>Sunucuya y\u00f6netici eri\u015fimi.<\/li>\n\n\n\n<li>Bir metin d\u00fczenleyici (\u00f6rne\u011fin, <a href=\"https:\/\/notepad-plus-plus.org\/downloads\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/notepad-plus-plus.org\/downloads\/\" rel=\"noreferrer noopener\">Not defteri++<\/a>) Lua betiklerini d\u00fczenlemek i\u00e7in.<\/li>\n\n\n\n<li>Lua beti\u011finin temel bilgisi.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ad\u0131mlar<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. FiveM sunucunuza eri\u015fin:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>FiveM sunucunuza SSH veya RDP eri\u015fiminiz oldu\u011fundan veya kontrol paneline eri\u015fiminiz oldu\u011fundan emin olun.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Kaynaklar klas\u00f6r\u00fcn\u00fcz\u00fc bulun:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>FiveM sunucunuzun ana dizinine gidin.<\/li>\n\n\n\n<li>&quot;Kaynaklar&quot; klas\u00f6r\u00fcn\u00fc bulun; sunucunuzun betikleri ve kaynaklar\u0131 burada bulunur.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Yeni bir Lua beti\u011fi olu\u015fturun:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Gerekirse &quot;kaynaklar&quot; klas\u00f6r\u00fcn\u00fcn i\u00e7inde yeni bir dizin olu\u015fturun, \u00f6rne\u011fin &quot;npc_reducer.&quot;<\/li>\n\n\n\n<li>\u201cnpc_reducer\u201d dizininin i\u00e7erisinde yeni bir Lua betik dosyas\u0131 olu\u015fturun, \u00f6rne\u011fin \u201creduce_npc_density.lua.\u201d<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Lua beti\u011fini d\u00fczenleyin:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Tercih etti\u011finiz metin d\u00fczenleyicisiyle \u201creduce_npc_density.lua\u201d dosyas\u0131n\u0131 a\u00e7\u0131n.<\/li>\n\n\n\n<li>A\u015fa\u011f\u0131daki Lua kodunu dosyaya ekleyin:<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"lua\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   Citizen.CreateThread(function() while true do Citizen.Wait(0) -- \u0130stenilen NPC yo\u011funlu\u011funu ayarlamak i\u00e7in a\u015fa\u011f\u0131daki say\u0131y\u0131 ayarlay\u0131n. local newDensity = 0.1 -- Bu de\u011feri gerekti\u011fi gibi de\u011fi\u015ftirin. SetVehicleDensityMultiplierThisFrame(newDensity) SetPedDensityMultiplierThisFrame(newDensity) SetRandomVehicleDensityMultiplierThisFrame(newDensity) SetParkedVehicleDensityMultiplierThisFrame(newDensity) SetScenarioPedDensityMultiplierThisFrame(newDensity, newDensity) end end)<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Yukar\u0131daki kodda \u015funlar\u0131 de\u011fi\u015ftirebilirsiniz: <code>yeniYo\u011funluk<\/code> Oyun d\u00fcnyas\u0131ndaki \u00e7e\u015fitli NPC ve ara\u00e7 t\u00fcrlerinin yo\u011funlu\u011funu kontrol etmek i\u00e7in de\u011fi\u015fken. Bir de\u011fer <code>1.0<\/code> varsay\u0131lan yo\u011funlu\u011fu temsil ederken, daha k\u00fc\u00e7\u00fck de\u011ferler bunu azalt\u0131r.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. Lua beti\u011fini kaydedip kapat\u0131n:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lua beti\u011finde yapt\u0131\u011f\u0131n\u0131z de\u011fi\u015fiklikleri kaydedin ve metin d\u00fczenleyicisini kapat\u0131n.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>6. server.cfg dosyan\u0131z\u0131 yap\u0131land\u0131r\u0131n:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>FiveM sunucunuzun ana dizinine gidin.<\/li>\n\n\n\n<li>\u201cserver.cfg\u201d dosyas\u0131n\u0131 bir metin d\u00fczenleyiciyle a\u00e7\u0131n.<\/li>\n\n\n\n<li>Dosyaya a\u015fa\u011f\u0131daki sat\u0131r\u0131 ekleyin:<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   npc_reducer&#039;\u0131 garantile<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Bu sat\u0131r, sunucu ba\u015flat\u0131ld\u0131\u011f\u0131nda \u201creduce_npc_density.lua\u201d beti\u011finizin y\u00fcklenmesini sa\u011flar.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>7. FiveM sunucunuzu yeniden ba\u015flat\u0131n:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Kaydet <a href=\"https:\/\/fivemx.com\/tr\/fivem-server-cfg\/\" title=\"FiveM server.cfg \u2013 Tam K\u0131lavuz\" data-wpil-monitor-id=\"1578\">&#8220;server.cfg&#8221; file<\/a> and restart your FiveM server to apply the changes.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>8. NPC yo\u011funlu\u011funu ger\u00e7ek zamanl\u0131 olarak ayarlay\u0131n:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sunucunuz tekrar a\u00e7\u0131ld\u0131\u011f\u0131nda, NPC yo\u011funlu\u011funu ger\u00e7ek zamanl\u0131 olarak ayarlayabilirsiniz. <code>yeniYo\u011funluk<\/code> Lua beti\u011finde de\u011fi\u015fken. Daha d\u00fc\u015f\u00fck de\u011ferler NPC yo\u011funlu\u011funu azaltacak, daha y\u00fcksek de\u011ferler ise art\u0131racakt\u0131r.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">FiveM&#039;de NPC&#039;leri (yo\u011funlu\u011fu) nas\u0131l azaltaca\u011f\u0131n\u0131z\u0131 bir Lua beti\u011fi olu\u015fturarak ve sunucunuzu onu y\u00fckleyecek \u015fekilde yap\u0131land\u0131rarak ba\u015far\u0131yla \u00f6\u011frendiniz. Bu, sunucu performans\u0131n\u0131 optimize etmenize veya GTA V FiveM sunucunuzda daha az NPC ile belirli oyun senaryolar\u0131 olu\u015fturman\u0131za yard\u0131mc\u0131 olabilir.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>E\u011fer size yard\u0131mc\u0131 olduysa l\u00fctfen be\u011fenin, payla\u015f\u0131n ve yorum yap\u0131n. :)<\/strong><\/p>\n\n\n<!-- fivemx-quality-enrichment-v2 -->\n<h2>Practical checklist<\/h2><p>Use this guide as a staging checklist before changing a live FiveM server. Confirm the current server artifact version, framework version, resource dependencies, database changes, and any client-side files before you apply the change.<\/p><ul><li>Back up the affected configuration files and database tables.<\/li><li>Apply the change on a test server first.<\/li><li>Watch the server console and client F8 console for errors.<\/li><li>Check whether the change affects jobs, inventory, vehicles, maps, voice, permissions, or player data.<\/li><li>Document the exact file, command, or setting you changed so it can be reverted quickly.<\/li><\/ul><h2>Testing before production<\/h2><p>After the first test, join with a normal player account and repeat the flow from the player perspective. If the topic involves performance, measure before and after with the same player count, route, and resource set. If it involves admin tools or permissions, verify both allowed and denied users.<\/p><h2>Yayg\u0131n hatalar<\/h2><p>Most FiveM issues come from missing dependencies, stale cache, wrong folder names, framework mismatch, or configuration copied from another server. Avoid changing multiple systems at once; make one change, test it, and then continue.<\/p><h2>Related resources<\/h2><p>For production-ready assets, compare paid resources in the <a href=\"https:\/\/fivemx.com\/tr\/magaza\/\">FiveMX shop<\/a>. For free resources, browse <a href=\"https:\/\/fivemx.com\/tr\/free-fivem-scripts\/\">free FiveM scripts<\/a> and test each resource before using it publicly.<\/p>\n\n<!-- fivemx-quality-depth-v3 -->\n<h2>Production rollout notes<\/h2><p>Before using this guidance on a live FiveM server, define the exact outcome you expect from the change. For How To Reduce NPC Density on FiveM, that means checking which resource, setting, command, or workflow is affected and confirming that the change fits your current framework, artifact version, and server rules. Keep the rollout small enough that you can reverse it quickly if players report errors.<\/p><p>Use a staging server with the same framework, database schema, resource order, and key dependencies as production. If the topic changes gameplay, permissions, visuals, voice, vehicles, maps, inventory, or economy behavior, test with at least one admin account and one normal player account. Watch server console output, client F8 logs, and resource timing while repeating the exact player flow that will happen on the live server.<\/p><h2>Rollback checklist<\/h2><ul><li>Save the previous configuration file, resource folder, and database state before changing anything.<\/li><li>Record the resource version, commit, download page, or setting value you tested.<\/li><li>Restart only the affected resource first when possible, then restart the full server if dependencies require it.<\/li><li>If errors appear, revert the single changed resource or setting before testing another fix.<\/li><\/ul><h2>Maintenance guidance<\/h2><p>Review this setup again after FiveM artifact updates, framework updates, or major resource changes. A configuration that works today can break after dependency updates, renamed exports, changed events, or database migrations. Keep notes with your server documentation so future admins understand what was changed, why it was changed, and how to verify it again.<\/p>\n\n<!-- fivemx-quality-depth-v4 -->\n<h2>Ongoing review<\/h2><p>Recheck How To Reduce NPC Density on FiveM after major FiveM artifact updates, framework changes, or resource migrations. Confirm that the advice still matches current server behavior, that any linked source remains available, and that installation steps still match the files a server owner will actually download or configure.<\/p><p>For public servers, keep a short changelog beside your server documentation. Note what was tested, what changed, which accounts were used for verification, and how to roll back. This makes future maintenance faster and prevents old setup notes from becoming unclear or unsafe for players.<\/p>","protected":false},"excerpt":{"rendered":"<p>Sometimes, you may want to reduce the number of non-playable characters (NPCs) or their density in the game world to improve server performance or create specific gameplay scenarios. In this tutorial, we will show you how to reduce NPCs in FiveM. Note: Reducing NPC density may require some knowledge of server-side scripting in FiveM. Make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":93580,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1899],"tags":[],"class_list":["post-93579","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/posts\/93579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/comments?post=93579"}],"version-history":[{"count":1,"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/posts\/93579\/revisions"}],"predecessor-version":[{"id":208558,"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/posts\/93579\/revisions\/208558"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/media\/93580"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/media?parent=93579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/categories?post=93579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemx.com\/tr\/wp-json\/wp\/v2\/tags?post=93579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}