Skip to the content
Docs

Nobody NameTags

ESX / QB. Its only open hook is:

lua
Config.CustomRequestScript(requesterName, requesterId, targetId)
--> must end in TriggerServerEvent('HandleKnowResponse', requesterId, targetId, accepted)

That is an entry point for a meet request, not a per-viewer query: once accepted it reveals the permanent real character name to the requester.

Read this before you wire it up. Nobody NameTags shows real character names. 5code-recognition never does: our answer is the name the person told you, or an automatic label. Mixing the two means a player can learn a real name from a meet and then use it for somebody they only saw behind a mask — the exact metagame this resource exists to stop. If you want recognition to drive names, prefer the push cache in any-nametag.md and leave their meet system off.

We do not ship or modify their code.

Gating the meet prompt on recognition

If you keep their meet flow, you can at least refuse the request when the target does not recognise the requester right now. Paste into their config:

lua
-- Nobody NameTags / config (THEIR file — your edit), client side on the target
Config.CustomRequestScript = function(requesterName, requesterId, targetId)
    -- Does MY character recognise the person asking, right now?
    local known = exports['5code-recognition']:IsRecognized(requesterId)
    if not known then
        -- Silently refuse: no prompt, no name, no clue that anything happened.
        TriggerServerEvent('HandleKnowResponse', requesterId, targetId, false)
        return
    end

    -- Your own prompt here; call the event with the player's answer.
    TriggerServerEvent('HandleKnowResponse', requesterId, targetId, true)
end

Two warnings

  • HandleKnowResponse is their own client → server event, and their documentation does not say whether their server re-checks it. Treat the gate above as roleplay flavour, not as security.
  • Do not answer the prompt automatically from IsRecognized and nothing else: recognising somebody is not the same as agreeing to hand them your name. The in-resource way to give a name is /recognition:introduce, which attaches the name to the look they can actually see.