𝐅𝐄𝐀𝐓𝐔𝐑𝐄𝐒𝐓𝐈𝐂 𝐋𝐄𝐀𝐊𝐒
رفتن به کانال در Telegram
📌 Educational & Research Purpose Only 🔍 Sharing publicly available source code for learning ❌ No selling ❌ No buying ❌ No promotions ⚠️ I am not responsible for misuse 📚 For knowledge & awareness only MODs & Kernel Resources.☑️
نمایش بیشتر2 047
مشترکین
+1124 ساعت
+627 روز
+20930 روز
آرشیو پست ها
2 050
-- ==========================================
-- Weapon Scale Changer (د وسلې اندازه بدلول)
-- د RAHMANYVI له خوا (Lua نسخه)
-- ✅ client
-- ==========================================
local function ApplyWeaponScale()
pcall(function()
local GameplayData = require("GameLua.GameCore.Data.GameplayData")
local localPlayer = GameplayData.GetPlayerCharacter()
if not slua.isValid(localPlayer) then return end
local currentWeapon = nil
pcall(function()
local weaponManager = localPlayer.WeaponManagerComponent
if slua.isValid(weaponManager) then
currentWeapon = weaponManager.CurrentWeaponReplicated
end
end)
if not slua.isValid(currentWeapon) then return end
local rootComp = nil
pcall(function()
rootComp = currentWeapon.RootComponent or currentWeapon:K2_GetRootComponent()
end)
if not slua.isValid(rootComp) then return end
local scaleValue = (_G.LexusConfig and _G.LexusConfig.WeaponScaleChanger) or 1.0
pcall(function()
local FVector = import("Vector")
if FVector then
local newScale = FVector(scaleValue, scaleValue, scaleValue)
rootComp.RelativeScale3D = newScale
else
-- tg
rootComp.RelativeScale3D = {X = scaleValue, Y = scaleValue, Z = scaleValue}
end
end)
end)
end
_G.ApplyWeaponScale = ApplyWeaponScale
_G.LexusConfig = _G.LexusConfig or {}
_G.LexusConfig.WeaponScale = true --
_G.LexusConfig.WeaponScaleChanger = 10.9
-- ==========================================
--
-- ==========================================
local function WeaponScaleLoop()
if _G.LexusConfig and _G.LexusConfig.WeaponScale then
pcall(ApplyWeaponScale)
end
local okTicker, ticker = pcall(require, "common.time_ticker")
if okTicker and ticker and ticker.AddTimerOnce then
ticker.AddTimerOnce(0.5, WeaponScaleLoop)
end
end
-- پیل
local okTicker, ticker = pcall(require, "common.time_ticker")
if okTicker and ticker and ticker.AddTimerOnce then
ticker.AddTimerOnce(5.0, function()
print("[WeaponScale] Auto-running...")
ApplyWeaponScale()
WeaponScaleLoop()
end)
end
Big Weapons Lua Based