Why is this not removing the blip after 5 seconds? Its server sided so IDK why its not working

RegisterCommand('blip', function()
    blip = AddBlipForCoord(685.15, 577.21, 131.46)

    Wait(5000)

    RemoveBlip(blip)

end)

Try this, but i think the problem is that is Server sided it needs to be client sided

local blip

RegisterCommand('blip', function()
    blip = AddBlipForCoord(685.15, 577.21, 131.46)

    Wait(5000)

    if DoesBlipExist(blip) then
        local success, errorMessage = pcall(RemoveBlip, blip)
        if not success then
            print('Error removing blip: ' .. errorMessage)
        end
    end
end)

To my knowledge, blips need to be done client-side as the server-side functions don’t function correctly.