[PAID] Double Connection Fix | pac-doubleconnection

This script basically fixes the multi connection on server.

Framework

This script is standalone. You can easily use on any framework.

Config File

Webhook

image

Preview (On kicked player)

Tebex

Our tebex link.

Code is accessible Yes and No there are two packets on tebex escrow & opensource
Subscription-based No
Lines (approximately) 127 Lines
Requirements N/A
Support Yes

Server:

AddEventHandler("playerConnecting", function(name, reason, deffer)
    local _src = source
    local ip = GetPlayerEndpoint(_src)
    local steam = GetPlayerIdentifierFromType("steam", _src)
    deffer.defer()
    deffer.update("Ensuring youre not already connected")
    for _,pid in ipairs(GetPlayers()) do
            local newSteam = GetPlayerIdentifierFromType("steam", pid)
            local newIp = GetPlayerEndpoint(_src)
            if newSteam == steam or newIp == ip then
                deffer.done("You can only be in this server on 1 client")
            end
    end
end)

-- https://forum.cfx.re/t/solved-is-there-a-better-way-to-get-lic-steam-and-ip-than-getplayeridentifiers/236243/2?u=bitterfuck
function GetPlayerIdentifierFromType(type, source)
	local identifiers = {}
	local identifierCount = GetNumPlayerIdentifiers(source)

	for a = 0, identifierCount do
		table.insert(identifiers, GetPlayerIdentifier(source, a))
	end

	for b = 1, #identifiers do
		if string.find(identifiers[b], type, 1) then
			return identifiers[b]
		end
	end
	return nil
end

Not tested but thats about the gist

4 Likes

Someone else selling natives

2 Likes

also u can use this function

2 Likes

is it possible to add whitelisted ip? allow some to have double connections for example two players using the same network?

If you log in to both clients at the same time, you can easily bypass this method.

If you log in to both clients at the same time, you can easily bypass this method too.

nope it doesnt will gonna work

No, sorry.

it defenelty is, why sell something you’re not even going to put the bare minimum into?

the price is like free as you can see. so if you have enough knowledge to do this you dont need to buy it. i made this because some server owners are dont have enough knowledge and why not :smile:

i used translate for understand your reply so if i misunderstand sorry for that