example
example

已解决√ 求助 qb-police

哇呜哇呜

活跃的用户
高级用户
认证用户
黄金
19.31G
qb-police的搜查背包,一点就会触发【尝试滥用漏洞】,这17618ed18a75e543b3928f3c9072159.jpg4452f31639534a81eb3fb2294f7c3d6.jpg个尝试滥用漏洞是哪个插件的,没加过反作弊,这个问题怎么解决
 
这个得从代码中找,看看哪个脚本中有类似的提示或者踢出玩家的操作,然后再修复。
 
这个得从代码中找,看看哪个脚本中有类似的提示或者踢出玩家的操作,然后再修复。
代码:
RegisterNetEvent('police:server:TiePlayer', function(playerId, isSoftcuff)
    local src = source
    local playerPed = GetPlayerPed(src)
    local targetPed = GetPlayerPed(playerId)
    local playerCoords = GetEntityCoords(playerPed)
    local targetCoords = GetEntityCoords(targetPed)
    if #(playerCoords - targetCoords) > 299999.5 then return DropPlayer(src, "尝试进行作弊行为") end

    local Player = QBCore.Functions.GetPlayer(src)
    local TiedPlayer = QBCore.Functions.GetPlayer(playerId)
    if not Player or not TiedPlayer or (not Player.Functions.GetItemByName("ziptie")) then return end
    if Player.Functions.RemoveItem('ziptie', 1) then
        TriggerClientEvent("police:client:GetTied", TiedPlayer.PlayerData.source, Player.PlayerData.source, isSoftcuff)
    end
end)
目前找到这个,我以为是距离太远了,我就把距离拉大,没想到人在面前打开背包还是崩
 
代码:
RegisterNetEvent('police:server:TiePlayer', function(playerId, isSoftcuff)
    local src = source
    local playerPed = GetPlayerPed(src)
    local targetPed = GetPlayerPed(playerId)
    local playerCoords = GetEntityCoords(playerPed)
    local targetCoords = GetEntityCoords(targetPed)
    if #(playerCoords - targetCoords) > 299999.5 then return DropPlayer(src, "尝试进行作弊行为") end

    local Player = QBCore.Functions.GetPlayer(src)
    local TiedPlayer = QBCore.Functions.GetPlayer(playerId)
    if not Player or not TiedPlayer or (not Player.Functions.GetItemByName("ziptie")) then return end
    if Player.Functions.RemoveItem('ziptie', 1) then
        TriggerClientEvent("police:client:GetTied", TiedPlayer.PlayerData.source, Player.PlayerData.source, isSoftcuff)
    end
end)
目前找到这个,我以为是距离太远了,我就把距离拉大,没想到人在面前打开背包还是崩
踢出玩家的提示都不一样,一个中文一个英文,你找的地方不对
 
踢出玩家的提示都不一样,一个中文一个英文,你找的地方不对
是一样的,被我汉化了, if #(playerCoords - targetCoords) > 299999.5 then return DropPlayer(src, "尝试进行作弊行为") end这条被我注释掉就不会了
 
是一样的,被我汉化了, if #(playerCoords - targetCoords) > 299999.5 then return DropPlayer(src, "尝试进行作弊行为") end这条被我注释掉就不会了
嗯,可以暂时先注释掉,按理来说具体判断不可能过大。可以先注释掉缓解一下
 
后退
顶部