: Move the badge image from the script's folder to qb-inventory/html/images/ and ensure it is named exactly as specified in your items.lua (e.g., police_badge.png ).
['police_badge'] = { ['name'] = 'police_badge', ['label'] = 'Police Badge', ['weight'] = 100, ['type'] = 'item', ['image'] = 'police_badge.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Official Department Identification' }, Use code with caution. Copied to clipboard
: You must register the badge as a usable item. Open your qb-core/shared/items.lua file and add the following entry: qb-policebadge.zip
: Provides a visual prop and UI badge animation to enhance law enforcement roleplay. Common Troubleshooting
: Unzip qb-policebadge.zip and place the folder (e.g., qb-policebadge ) into your server's resources directory. : Move the badge image from the script's
: Some versions, like stevo_policebadge , allow officers to set a custom photo using in-game commands.
: Add ensure qb-policebadge to your server.cfg file. Open your qb-core/shared/items
: Displays a UI containing the officer's Callsign , Rank , and Name to other players.