local destructionCauseHash = GetVehicleCauseOfDestruction(GetVehiclePedIsIn(PlayerPedId(), true))
if destructionCauseHash == GetHashKey("weapon_stickybomb") then
-- It looks like the vehicle was destroyed by a sticky bomb
Citizen.Trace('Vehicle was destroyed by a sticky bomb!')
elseif destructionCauseHash ~= 0 then
-- It looks like the vehicle was destroyed by something else!
Citizen.Trace('Vehicle was destroyed by: ' .. destructionCauseHash)
end