WRAPCODERS

GTA 5 Roleplay Game HUD

Component 1

About

Clean three-zone roleplay HUD with an interactive wanted level strip, street radar minimap, dispatch tracker, and radial speedometer.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds GTA 5 Roleplay Game HUD to your project and fits it to your theme.

Code

How GTA 5 Roleplay Game HUD is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { useEffect } from "react";
import { GtaRoleplayHud } from "@/components/ui/gta-roleplay-hud";

const PROFILE_REFERRAL_URL = "https://21st.dev/@wrapcoders?ref=mdruhulhasan";

const settings = {
  serverName: "LOS SANTOS RP",
  onlineCount: 745,
  wantedStars: 3,
  healthPercent: 85,
  armorPercent: 60,
  speed: 89,
  fuelPercent: 68,
  showFooterCredit: true,
};

export default function GtaRoleplayHudDemo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };

  useEffect(() => {
    if (typeof window === "undefined") return;
    const themeParam = new URLSearchParams(window.location.search).get("theme");
    if (themeParam === "light") {
      document.documentElement.classList.remove("dark");
    } else if (themeParam === "dark") {
      document.documentElement.classList.add("dark");
    }
  }, []);

  return (
    <div className="min-h-screen w-full bg-background text-foreground p-4 sm:p-8 flex flex-col items-center justify-center gap-6">
      <div className="w-full max-w-6xl">
        <GtaRoleplayHud
          serverName={s.serverName}
          onlineCount={s.onlineCount}
          serverRegion="US-EAST"
          wantedStars={s.wantedStars}
          healthPercent={s.healthPercent}
          armorPercent={s.armorPercent}
          speed={s.speed}
          fuelPercent={s.fuelPercent}
        />
      </div>
      {s.showFooterCredit && (
        <footer className="text-center">
          <a
            href={PROFILE_REFERRAL_URL}
            target="_blank"
            rel="noopener noreferrer"
            className="text-xs text-muted-foreground hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background rounded-sm"
          >
            More by @wrapcoders
          </a>
        </footer>
      )}
    </div>
  );
}

Dependencies

More by WRAPCODERS

View all
  • Product Hover Showcase

    Product Hover Showcase

    121
  • Real Estate 3D Hero

    Real Estate 3D Hero

    89
  • Creator Community Arc

    Creator Community Arc

    69
  • LoopAI CRM

    LoopAI CRM

    68
  • Isometric Card Stack

    Isometric Card Stack

    55
  • Flash Technologies Crypto Wallet Hero

    Flash Technologies Crypto Wallet Hero

    54
  • Client Management CRM Hub

    Client Management CRM Hub

    48
  • Admin Dashboard Cards

    Admin Dashboard Cards

    44

Explore more

Part of Components — browse the full library on 21st.dev.