FAQ

How do I disable the cuff requirement for using the chair?

To disable the cuff requirement when using the chair, follow these steps:

  1. Open the server/sv_functions_open.lua file.

  2. Locate this code block:

    function AllowedToChair(source,target, forcetochair)
        local targetPed = GetPlayerPed(target)
        if not DoesEntityExist(targetPed) then return false end
        if(forcetochair) then
            local xPlayer = GetPlayerFromId(target)
            if not xPlayer then return false end
            if(Config.Framework == "QBCore") then
                if(not xPlayer.PlayerData.metadata['ishandcuffed']) then 
                    ShowNotification(source, Config.Lang.PlayerNotCuffed, "error")
                    return false 
                end
            else
                if not IsPedHandcuffed(targetPed) then
                    ShowNotification(source, Config.Lang.PlayerNotCuffed, "error")
                    return false
                end
            end
        end
        return true
    end

  1. Replace it with this code block:

    function AllowedToChair(source,target, forcetochair)
        local targetPed = GetPlayerPed(target)
        if not DoesEntityExist(targetPed) then return false end
    
        return true
    end

  1. Restart the script, and you are good to go!

Last updated