From dc127f8e1919f204ade432f3256e59dc5bed3833 Mon Sep 17 00:00:00 2001 From: L7NEG Date: Wed, 28 Jan 2026 16:25:01 +0200 Subject: [PATCH] Remove ped initialization and update target build Eliminated the script block that initialized the local ped on first render and set its health. Updated TAGET_BUILD constant from 3725.0 to 3751.0 to reflect the new target build version. --- YimMenu/Ultimate_Menu_Legacy.lua | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/YimMenu/Ultimate_Menu_Legacy.lua b/YimMenu/Ultimate_Menu_Legacy.lua index 95841d5..a6afcec 100644 --- a/YimMenu/Ultimate_Menu_Legacy.lua +++ b/YimMenu/Ultimate_Menu_Legacy.lua @@ -1,24 +1,3 @@ --- only initialize if local ped is rendered 1st time - -script.run_in_fiber(function() - local ped = 0 - - if NETWORK and NETWORK.NETWORK_IS_SESSION_STARTED then - repeat - ped = PLAYER.PLAYER_PED_ID() - until NETWORK.NETWORK_IS_PLAYER_ACTIVE(PLAYER.PLAYER_ID()) and ped ~= 0 and ENTITY.DOES_ENTITY_EXIST(ped) - else - repeat - ped = PLAYER.PLAYER_PED_ID() - until ped ~= 0 and ENTITY.DOES_ENTITY_EXIST(ped) - end - - repeat - until PLAYER.IS_PLAYER_CONTROL_ON(PLAYER.PLAYER_ID()) - - ENTITY.SET_ENTITY_HEALTH(ped, 200) -end) - --Required Stats---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- local function MPX() @@ -2752,7 +2731,7 @@ end) ---@diagnostic disable: undefined-global, lowercase-global SCRIPT_NAME = "YimResupplier" -local TAGET_BUILD = "3725.0" +local TAGET_BUILD = "3751.0" -- ============================================================================ -- JSON LIBRARY (rxi's json.lua)