FAQ
How do I disable the cuff requirement for using the chair?
To disable the cuff requirement when using the chair, follow these steps:
Open the
server/sv_functions_open.lua
file.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
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
Restart the script, and you are good to go!
Last updated