if not ESX then local exportExists, obj = pcall(function() return exports.es_extended:getSharedObject() end) if exportExists then ESX = obj else TriggerEvent('esx:getSharedObject', function(esx) ESX = esx end) while not ESX do Wait(100) end end end function CanPlayerSlashTires() local playerData = ESX.GetPlayerData() if playerData.dead then return false, 'is_dead' end -- You may need to edit this to check for a metadata variable, but defualt esx does not have any handcuffed variable by default, so I'll just add an anim check here instead -- Checks if the ped has the CPED_CONFIG_FLAG_IsHandCuffed flag or is playing a cuffed anim local playerPed = PlayerPedId() if GetPedConfigFlag(playerPed, 120, true) or IsEntityPlayingAnim(playerPed, 'mp_arresting', 'idle', 3) then return false, 'is_handcuffed' end return true end