Connection rejected by server (FxDK)

One of your scripts tries to use identifiers. however they’re not available on fxdk, a work around would be doing smth like this

function FunctionThatUsesIdentifiers()
    local license
    -- Setting license etc
    ...
    -- Since we're on FxDK license is nil so we can go ahead and setup a dummy
    -- if isFxDK is true
    if isFxDK() then
        license = 'license:AAAAAAAAAAAAAAAA' -- Dummy License
    end

    if license == nil then
        -- Our license is not valid, lets kick the user.
    end
end

function isFxDK()
    return GetConvarInt("sv_fxdkMode", false)
end

Cheers

(or if I’m wrong, this above is still a solution for scripts, i’m not really familiar with FiveM just yet.)

1 Like