{"id":199002,"date":"2025-09-22T07:58:34","date_gmt":"2025-09-22T05:58:34","guid":{"rendered":"https:\/\/fivemx.com\/?p=199002"},"modified":"2026-07-20T12:36:33","modified_gmt":"2026-07-20T10:36:33","slug":"fivem-so-entfernen-sie-das-fadenkreuz","status":"publish","type":"post","link":"https:\/\/rpcrate.com\/de\/fivem-how-to-remove-the-crosshair\/","title":{"rendered":"Wie man das Fadenkreuz in FiveM entfernt (HideHudComponentThisFrame 14)"},"content":{"rendered":"<p><strong>Fast answer:<\/strong> FiveM servers remove the default GTA crosshair \u2014 HUD component <code data-no-translation=\"\" translate=\"no\">14<\/code>, the reticle \u2014 by running <code data-no-translation=\"\" translate=\"no\">HideHudComponentThisFrame(14)<\/code> every frame in a client script. The call must run on the client, inside a loop, because HUD components render again on the next frame. Below: the copy-paste resource, an optional player toggle command, and fixes for a crosshair that keeps coming back.<\/p>\n<p>The configuration and code examples here target FiveM for GTA V Legacy. Enhanced has different runtime and compatibility rules; check <a href=\"https:\/\/docs.fivem.net\/docs\/developers\/legacy-vs-enhanced\/\">Cfx.re\u2019s Legacy-to-Enhanced changes<\/a> before applying them to an Enhanced server.<\/p>\n<h2 id=\"copyable-client-script\">Copyable client script<\/h2>\n<p>Create a small client resource and put this in <code data-no-translation=\"\" translate=\"no\">client.lua<\/code>:<\/p>\n<pre data-no-translation=\"\" translate=\"no\"><code data-no-translation=\"\" translate=\"no\">CreateThread(function()\n while true do\n Wait(0)\n HideHudComponentThisFrame(14)\n end\nend)<\/code><\/pre>\n<p>The official Cfx.re native reference lists <a href=\"https:\/\/docs.fivem.net\/natives\/?_0x6806C51AD12B83B8=\" rel=\"nofollow\">HideHudComponentThisFrame<\/a> as the native for hiding HUD components. Component <code data-no-translation=\"\" translate=\"no\">14<\/code> is the reticle\/crosshair.<\/p>\n<h2 id=\"minimal-fxmanifest-lua\">Minimal fxmanifest.lua<\/h2>\n<p>Place this next to <code data-no-translation=\"\" translate=\"no\">client.lua<\/code> in a resource folder, for example <code data-no-translation=\"\" translate=\"no\">resources\/[local]\/no-crosshair\/<\/code>:<\/p>\n<pre data-no-translation=\"\" translate=\"no\"><code data-no-translation=\"\" translate=\"no\">fx_version 'cerulean'\ngame 'gta5'\n\nclient_script 'client.lua'<\/code><\/pre>\n<p>Then add the resource to <code data-no-translation=\"\" translate=\"no\">server.cfg<\/code>:<\/p>\n<pre data-no-translation=\"\" translate=\"no\"><code data-no-translation=\"\" translate=\"no\">ensure no-crosshair<\/code><\/pre>\n<h2 id=\"why-it-has-to-run-every-frame\">Why it has to run every frame<\/h2>\n<p>HUD hiding is frame based. Calling the native once can look like it worked for a moment, but the reticle returns because GTA renders HUD components again on later frames. Keep the loop lightweight and do not add expensive logic inside it.<\/p>\n<h2 id=\"player-side-vs-server-side-crosshair-removal\">Player-side vs server-side crosshair removal<\/h2>\n<div aria-label=\"Scrollable table\" class=\"fmx-guide-table\" role=\"region\" tabindex=\"0\">\n<table>\n<thead>\n<tr>\n<th>Goal<\/th>\n<th>Best method<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Remove the default GTA reticle for everyone<\/td>\n<td>Use a small client resource with <code data-no-translation=\"\" translate=\"no\">HideHudComponentThisFrame(14)<\/code>.<\/td>\n<\/tr>\n<tr>\n<td>Let players choose<\/td>\n<td>Add a client setting or command that toggles the loop.<\/td>\n<\/tr>\n<tr>\n<td>Remove a custom weapon HUD<\/td>\n<td>Check the weapon\/HUD resource. It may draw its own crosshair.<\/td>\n<\/tr>\n<tr>\n<td>Stop monitors or overlays adding a dot<\/td>\n<td>Check client overlays, monitor features, and graphics mods.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 id=\"optional-toggle-command\">Optional toggle command<\/h2>\n<p>For a player toggle, replace the first client.lua example with this entire version. Do not run both loops:<\/p>\n<pre data-no-translation=\"\" translate=\"no\"><code data-no-translation=\"\" translate=\"no\">local crosshairHidden = true\n\nRegisterCommand('crosshair', function()\n crosshairHidden = not crosshairHidden\n print(crosshairHidden and 'Crosshair hidden' or 'Crosshair visible')\nend, false)\n\nCreateThread(function()\n while true do\n Wait(0)\n if crosshairHidden then\n HideHudComponentThisFrame(14)\n end\n end\nend)<\/code><\/pre>\n<h2 id=\"troubleshooting\">Troubleshooting<\/h2>\n<ul>\n<li>If the crosshair still appears, another HUD or weapon resource may be drawing its own element.<\/li>\n<li>If the resource does not start, verify the <a href=\"https:\/\/rpcrate.com\/setting-up-fxmanifest-lua-fivem\/\">fxmanifest.lua setup<\/a>.<\/li>\n<li>If only one player sees a dot, check monitor overlays or graphics tools on that PC.<\/li>\n<\/ul>\n<h2 id=\"faq\">FAQ<\/h2>\n<h3 id=\"can-this-be-done-in-server-lua\">Can this be done in server.lua?<\/h3>\n<p>No. HUD rendering is client-side. Trigger a client event if you need server logic, but call the native in client code.<\/p>\n<h3 id=\"does-this-affect-custom-scopes\">Does this affect custom scopes?<\/h3>\n<p>It hides the default reticle component. Custom weapon scripts, scopes, or NUI overlays may still draw their own UI.<\/p>\n<section data-fivemx-rework-extra=\"2026-06-25\">\n<h2 id=\"server-side-rollout-checklist\">Server-side rollout checklist<\/h2>\n<p>Before adding this to a live roleplay server, test it with the weapons and HUD resources your players already use. A default reticle can be hidden by component 14, but many servers also run weapon overlays, custom scopes, or NUI HUDs. Those scripts may draw their own crosshair and need separate settings.<\/p>\n<ol>\n<li>Create the resource on a staging server.<\/li>\n<li>Test pistols, rifles, shotguns, melee weapons, and unarmed movement.<\/li>\n<li>Check first-person and third-person view.<\/li>\n<li>Open the inventory, radial menu, weapon wheel replacement, and HUD.<\/li>\n<li>Ask one tester with a clean client and one tester with normal overlays to compare.<\/li>\n<\/ol>\n<h2 id=\"how-to-debug-a-crosshair-that-comes-back\">How to debug a crosshair that comes back<\/h2>\n<p>If the dot returns only while aiming, your code may not be running every frame. If it returns only with one weapon or one job, a weapon or police resource may draw the UI. If it appears only for one player, check monitor crosshair features, ReShade overlays, GPU overlays, or accessibility tools on that PC.<\/p>\n<h2 id=\"good-server-policy-wording\">Good server policy wording<\/h2>\n<p>If your server bans external crosshairs, write the rule clearly: no monitor crosshair, no overlay crosshair, no third-party aiming dot. Then enforce it with staff review rather than relying only on a script that hides the default HUD reticle.<\/p>\n<\/section>\n<section data-fivemx-quality-wave=\"2026-07-01:199002\">\n<\/section>\n<h2 id=\"reference-documentation\">Reference documentation<\/h2>\n<p><a href=\"https:\/\/docs.fivem.net\/natives\/?_0x6806C51AD12B83B8\">Cfx.re \u2014 natives<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kurze Antwort: FiveM-Server entfernen das standardm\u00e4\u00dfige GTA-Fadenkreuz \u2013 HUD-Komponente 14, das Fadenkreuz \u2013 indem sie HideHudComponentThisFrame(14) in jedem Frame in einem Client-Skript ausf\u00fchren. Der Aufruf muss auf dem Client, innerhalb einer Schleife, ausgef\u00fchrt werden, da HUD-Komponenten im n\u00e4chsten Frame erneut gerendert werden. Unten: die Copy-Paste-Ressource, ein optionaler Spieler-Umschaltbefehl und L\u00f6sungen f\u00fcr ein Fadenkreuz, das immer wieder auftaucht.<\/p>","protected":false},"author":1,"featured_media":199003,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1902,2340,1899],"tags":[3001],"class_list":["post-199002","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fivem-related","category-lua-scripting","category-tutorials","tag-fivem-script"],"_links":{"self":[{"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/posts\/199002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/comments?post=199002"}],"version-history":[{"count":4,"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/posts\/199002\/revisions"}],"predecessor-version":[{"id":213814,"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/posts\/199002\/revisions\/213814"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/media\/199003"}],"wp:attachment":[{"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/media?parent=199002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/categories?post=199002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rpcrate.com\/de\/wp-json\/wp\/v2\/tags?post=199002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}