Force players to use Steam

Hey,

is there any way to force a joining player to have steam open in background?

Thx for helping

Why you want to live i 1990:? Why you want consume a player cpu and ram on Soft what he dont need?

But stay old and outdated
Here is your FORCE_:

# Steam Web API key, if you want to use Steam authentication (https://steamcommunity.com/dev/apikey)
# -> replace "" with the key
set steam_webApiKey "KEYS"

put this in your server.cfg and fill your key

1 Like

hey bro just add this to any server side plus the set steam_webApiKey “KEYS” in the cfg

local function OnPlayerConnecting(name, setKickReason, deferrals)

local player = source

local steamIdentifier

local identifiers = GetPlayerIdentifiers(player)

for _, v in pairs(identifiers) do

    if string.find(v, "steam") then

        steamIdentifier = v

        break

    end

end

if not steamIdentifier then

    CancelEvent()

    setKickReason("Please connect your  Steam.")
end

end
AddEventHandler(“playerConnecting”, OnPlayerConnecting)

1 Like

where do i add this?

In server file

sorry for those questions but do you mean server.cfg ?

thx bro got it

inside any of your scripts in the server side

1 Like

You should never force Steam or Discord to be opened for joining your server.
If either Steam or Discord is down (it happened numerous times already, and will happen again) no one will be able to join your server.

we can easily turn it off then
i made an own script only for steam