[Request] Spawn Ped with Text in the head

how can i do something like that?? Help please

Use an entity enumerator and then something like:

CreateThread(function()
    while true do
        Wait(0)

        for ped in EnumeratePeds() do
            local pedCoords = GetEntityCoords(ped, true)

            -- check if dist is less than 30 meters
            if #(GetEntityCoords(PlayerPedId(), true) - vCoords) < 30 then
                -- drawtext()
            end
        end
    end

end)

thanks bro