No output possible from "RegisterCommand" function

Hello all, i am working for quite some time within a project and suddenly come across this very strange behaviour related to a command i’ve registered. Somehow all possible ways to get output to server or client console fails. What i’ve tried:

Setting multiple print() functions inside the function → no output
Setting multiple citizien.trace fucntions inside → no output
Echoing into debug.log file via os.execute(“echo ‘TEST’ > /tmp/ping_test.log”) → works
Setting a trigger for a notification event → also works
I am quite confused why neither print() nor citizen.trace suddenly not work here, i’ve also checked putting it in other events and in general they are fine, they just seem to not work inside this command logic. Also later on that logic the event “requestPing” gets triggered and the print() function there also fails. Here is the related code:

RegisterCommand(“sendping”, function(source, args)
if source == 0 then
print(“[Ping Debug] Console can’t use this command.”)
return
end

print("[Ping Debug] sendping command started for source: " .. tostring(source))

if not args[1] then
    TriggerClientEvent("DoLongHudText", source, "Usage: /sendping [server ID]", 2)
    return
end

local target = tonumber(args[1])
print("[Ping Debug] Parsed target: " .. tostring(target))

if not GetPlayerName(target) then
    print("[Ping Debug] Target player not found.")
    TriggerClientEvent("DoLongHudText", source, "Player not found!", 2)
    return
end

local ped = GetPlayerPed(source)
if not DoesEntityExist(ped) then
    print("[Ping Debug] Player ped does not exist yet.")
    TriggerClientEvent("DoLongHudText", source, "You must be fully loaded into the world to use this.", 2)
    return
end

local coords = GetEntityCoords(ped)
print(("[Ping Debug] Coords gathered: %.2f %.2f %.2f"):format(coords.x, coords.y, coords.z))

local isAnon = false
TriggerEvent("requestPing", target, coords.x, coords.y, coords.z, isAnon)
TriggerClientEvent("DoLongHudText", source, "Ping sent to player " .. target, 1)

end, false)

RegisterServerEvent(‘requestPing’)
AddEventHandler(‘requestPing’, function(target, x,y,z, pIsAnon)
local src = source
local user = exports[“np-base”]:getModule(“Player”):GetUser(src)
local char = user:getCurrentCharacter()
local name = char.first_name … " " … char.last_name
print(“[Ping Debug] Client event: allowedPing”)
TriggerClientEvent(‘allowedPing’, tonumber(target), x,y,z, src, name, pIsAnon)
end)