fork download
  1. -- Script nhẹ tâm Free Fire OB55
  2. -- Tự động áp dụng cấu hình, dọn cache, tăng nhạy
  3. -- Không cần reset Free Fire
  4.  
  5. -- Bước 1: Khai báo đường dẫn
  6. local basePaths = {
  7. "/sdcard/Android/data/com.dts.freefireth/files/",
  8. "/sdcard/Android/data/com.dts.freefiremax/files/"
  9. }
  10. local cachePaths = {
  11. "/sdcard/Android/data/com.dts.freefireth/cache/",
  12. "/sdcard/Android/data/com.dts.freefiremax/cache/",
  13. "/sdcard/Android/data/com.dts.freefireth/cache/character/",
  14. "/sdcard/Android/data/com.dts.freefiremax/cache/character/",
  15. "/sdcard/Android/data/com.dts.freefireth/cache/skin/",
  16. "/sdcard/Android/data/com.dts.freefiremax/cache/skin/"
  17. }
  18. local MAX_CACHE_AGE = 3 * 24 * 60 * 60
  19.  
  20. -- Bước 2: Hàm ghi file an toàn
  21. local function writeFile(path, content)
  22. local f = io.open(path, "r")
  23. if f then
  24. local old = f:read("*a")
  25. f:close()
  26. if old == content then return false end
  27. end
  28. local out = io.open(path, "w")
  29. if out then
  30. out:write(content)
  31. out:close()
  32. return true
  33. end
  34. return false
  35. end
  36.  
  37. -- Bước 3: Hàm xóa file an toàn
  38. local function safeRemove(path)
  39. pcall(os.remove, path)
  40. end
  41.  
  42. -- Bước 4: Hàm dọn dẹp cache
  43. local function cleanCache()
  44. local now = os.time()
  45. for _, dir in ipairs(cachePaths) do
  46. local f = io.popen("ls " .. dir .. " 2>/dev/null")
  47. if f then
  48. for file in f:lines() do
  49. local fullPath = dir .. file
  50. local attr = io.popen("stat -c %Y " .. fullPath .. " 2>/dev/null")
  51. if attr then
  52. local mtime = tonumber(attr:read("*a"))
  53. attr:close()
  54. if mtime and (now - mtime) > MAX_CACHE_AGE then
  55. safeRemove(fullPath)
  56. end
  57. end
  58. end
  59. f:close()
  60. end
  61. end
  62. end
  63.  
  64. -- Bước 5: Cấu hình nhẹ tâm OB55
  65. local lowSpecConfig = [[
  66. [Graphics]
  67. Quality=0
  68. Shadow=0
  69. AntiAlias=0
  70. Particle=0
  71. Effect=0
  72. RenderScale=0.3
  73. FPS=60
  74. TextureQuality=0
  75. ModelQuality=0
  76. CharacterDetail=0
  77. EnvironmentDetail=0
  78. GrassRender=0
  79. WaterRender=0
  80. SkyRender=0
  81. [Render]
  82. HideBody=1
  83. HideLegs=1
  84. HideArms=1
  85. HideHead=1
  86. HideNeck=1
  87. HideTorso=1
  88. HideChest=1
  89. HideAbdomen=1
  90. HidePelvis=1
  91. HideThigh=1
  92. HideCalf=1
  93. HideFoot=1
  94. HideShoulder=1
  95. HideUpperArm=1
  96. HideForearm=1
  97. HideHand=1
  98. HideFinger=1
  99. HideWeapon=0
  100. HideBackpack=1
  101. HideHelmet=1
  102. HideVest=1
  103. HideGloves=1
  104. HideBoots=1
  105. RenderHitboxOnly=1
  106. CharacterLOD=0
  107. SkeletonRender=0
  108. SkinRender=0
  109. AnimationRender=0
  110. DisableBodyMesh=1
  111. DisableLimbMesh=1
  112. DisableTorsoMesh=1
  113. DisableArmMesh=1
  114. DisableLegMesh=1
  115. DisableHeadMesh=1
  116. DisableNeckMesh=1
  117. DisableChestMesh=1
  118. DisableAbdomenMesh=1
  119. DisablePelvisMesh=1
  120. DisableThighMesh=1
  121. DisableCalfMesh=1
  122. DisableFootMesh=1
  123. DisableShoulderMesh=1
  124. DisableUpperArmMesh=1
  125. DisableForearmMesh=1
  126. DisableHandMesh=1
  127. DisableFingerMesh=1
  128. DisableEnemyRender=1
  129. DisableTeammateRender=1
  130. [Performance]
  131. ThreadCount=4
  132. HeapSize=256
  133. CacheSize=128
  134. [Touch]
  135. TouchSensitivity=100
  136. AimSensitivity=100
  137. FireSensitivity=100
  138. ScopeSensitivity=100
  139. GyroSensitivity=100
  140. TouchResponseRate=1000
  141. InputLatency=0
  142. Acceleration=1
  143. DeadZone=0
  144. Smoothness=0
  145. ]]
  146.  
  147. -- Bước 6: Áp dụng cấu hình và dọn dẹp
  148. local changed = 0
  149. for _, base in ipairs(basePaths) do
  150. if writeFile(base .. "settings.ini", lowSpecConfig) then changed = changed + 1 end
  151. if writeFile(base .. "low_render.cfg", lowSpecConfig) then changed = changed + 1 end
  152. if writeFile(base .. "hide_model.cfg", lowSpecConfig) then changed = changed + 1 end
  153. if writeFile(base .. "touch.cfg", lowSpecConfig) then changed = changed + 1 end
  154. if writeFile(base .. "animation.cfg", "EnableAnimation=0\nSkeletonUpdate=0\nIKUpdate=0\n") then changed = changed + 1 end
  155. end
  156.  
  157. cleanCache()
  158.  
  159. -- Bước 7: Ghi log
  160. local logFile = io.open("/sdcard/ff_low_spec.log", "a")
  161. if logFile then
  162. logFile:write("Applied at: " .. os.date("%Y-%m-%d %H:%M:%S") .. "\n")
  163. logFile:write("Files changed: " .. changed .. "\n")
  164. logFile:close()
  165. end
  166.  
  167. -- Bước 8: Xác nhận
  168. print("Đã ghi cấu hình nhẹ tâm OB55")
  169. print("Số file thay đổi: " .. changed)
  170. print("Đã tăng độ nhạy và dọn cache")
  171. print("Không cần reset Free Fire")
Success #stdin #stdout 0.02s 5284KB
stdin
com.dts.freefireth
stdout
Đã ghi cấu hình nhẹ tâm OB55
Số file thay đổi: 0
Đã tăng độ nhạy và dọn cache
Không cần reset Free Fire