Blip going in the wrong way

SERVER

CreateThread(function()
    
        MySQL.Async.fetchAll('SELECT * FROM `empresas`', {},
        function(result)
            for _, v in ipairs(result) do
                TriggerClientEvent('riki-empresas:criarBlip', -1, v.coords_base, v.tipo)
                print("Blips carregados")
            end
        end)
end)

v.coords_base returns = vec3(-551, -918, 23)
CLIENT

RegisterNetEvent('riki-empresas:criarBlip')
AddEventHandler('riki-empresas:criarBlip', function(coordenadasDoBlip, tipoDoBlip)
    local name = tostring(coordenadasDoBlip)
    local blip = AddBlipForCoord(name)
    SetBlipSprite(blip, 207)
    SetBlipDisplay(blip, 4)
    SetBlipScale(blip, 0.8)
    SetBlipColour(blip, 3)
    SetBlipAsShortRange(blip, true)
    BeginTextCommandSetBlipName("STRING")
    AddTextComponentSubstringPlayerName("Empresa à venda" .. " " .. "(" .. tipoDoBlip .. ")")
    EndTextCommandSetBlipName(blip)
    print("Blips carregados")
end)

why is this happening?

Also in client it also prints the same thing if I print coordenadasDoBlip

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.