Player Blip script not working?

I really don’t understand what I’m doing wrong here.

I have downloaded the playerblips script from the “Scammer Script thread” but fail to get it working.
The server is fully vanilla and no script hook or other things are enabled (not sure if this is related).

I also tried creating something myself but don’t seem to get any results.

is the script actually running? did you put it in the resources folder and started it with the server.cfg file?

Yes ofcourse, I’ve both used refresh and start playerblips

and the normal method of starting them from the cfg file.

I wrote myself something as well so I can thoroughly test with something that I’m familiar with, but with no success.

local ped, veh
local blip, blipSprite
local passengers

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(1)

        for i=0, 64 do
            if NetworkIsPlayerActive(i) and GetPlayerPed(i) ~= GetPlayerPed(-1) then
                ped = GetPlayerPed(i)
                blip = GetBlipFromEntity(ped)

                if not DoesBlipExist(blip) then
                    blip = AddBlipForEntity(ped)
                    SetBlipSprite(blip, 1)
                    ShowHeadingIndicatorOnBlip(blip, true)
                else
                    blipSprite = GetBlipSprite(blip)
                    veh = GetVehiclePedIsIn(ped, false)

                    if not GetEntityHealth(ped) and blipSprite ~= 274 then
                        SetBlipSprite(blip, 274)
                    elseif veh then
                        passengers = GetVehicleNumberOfPassengers(veh)

                        if passengers then
                            if not IsVehicleSeatFree(veh, -1) then
                                passengers = passengers + 1
                            end

                            ShowNumberOnBlip(blip, passengers)
                        else
                            HideNumberOnBlip(blip)
                        end
                    else
                        HideNumberOnBlip(blip)

                        if blipSprite ~= 1 then
                            SetBlipSprite(blip, 1)
                        end
                    end

                    --SetBlipRotation(blip, math.ciel(GetEntityHeading(veh)))
                    SetBlipNameToPlayerName(blip, id)
                    SetBlipScale(blip, .85)

                    if IsPauseMenuActive() then
                        SetBlipAlpha(blip, 255)
                    else
                        x1, y1 = table.unpack(GetEntityCoords(GetPlayerPed( -1 ), true))
						x2, y2 = table.unpack(GetEntityCoords(GetPlayerPed( id ), true))
						distance = ( math.floor( math.abs( math.sqrt( ( x1 - x2 ) * ( x1 - x2 ) + ( y1 - y2 ) * ( y1 - y2 ) ) ) / -1 ) ) + 900

						if distance < 0 then
							distance = 0
						elseif distance > 255 then
							distance = 255
						end

						SetBlipAlpha(blip, distance)
                    end
                end
            end
        end
    end
end)

Is it possible that NETWORK natives don’t work or at least some don’t?
NetworkIsPlayerActive doesn’t appear to return any players.

I disabled

onesync_enabled true

in the server config, not sure why this was enabled as I don’t have access to 64 slots.