From edd3fbc9101df230f0fc01ed1e007f66e886807a Mon Sep 17 00:00:00 2001 From: Fernando-A-Rocha Date: Sun, 11 May 2025 17:10:48 +0100 Subject: [PATCH 1/2] fix 4 lint warnings --- [gameplay]/parachute2/client.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/[gameplay]/parachute2/client.lua b/[gameplay]/parachute2/client.lua index 556bc0f50..a0e36e2cc 100644 --- a/[gameplay]/parachute2/client.lua +++ b/[gameplay]/parachute2/client.lua @@ -60,7 +60,8 @@ local function handleParachuteLogic() -- can we go to freefall/skydive if (strPlayerState == "GROUND" and bHasParachute) then - fRotationX, fRotationY, fRotationZ = getElementRotation(localPlayer); + local _, _, fRotationZ_ = getElementRotation(localPlayer); + fRotationZ = fRotationZ_ if (not isPedOnGround(localPlayer) and not getPedContactElement(localPlayer)) then if (fVZ < -0.1) then @@ -340,9 +341,8 @@ local function handleParachuteLogic() end -- player landed - if (strPlayerState == "LANDED") then - - end + -- if (strPlayerState == "LANDED") then + -- end end end addEventHandler("onClientRender", root, handleParachuteLogic); @@ -361,8 +361,8 @@ function cleanupParachute(bLandedGood) toggleControl("next_weapon", true); toggleControl("previous_weapon", true); - if (not bLandedGood) then + -- if (not bLandedGood) then -- todo: remove weapon from player via server -- takeWeapon(client, 46); - end -end \ No newline at end of file + -- end +end From 3979d4830c2eb65c3fbd5925af6c10758524d498 Mon Sep 17 00:00:00 2001 From: Fernando-A-Rocha Date: Sun, 11 May 2025 17:11:40 +0100 Subject: [PATCH 2/2] getControlState => getPedControlState --- [gameplay]/parachute2/client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[gameplay]/parachute2/client.lua b/[gameplay]/parachute2/client.lua index a0e36e2cc..d8b598244 100644 --- a/[gameplay]/parachute2/client.lua +++ b/[gameplay]/parachute2/client.lua @@ -229,7 +229,7 @@ local function handleParachuteLogic() --]] -- player opening parachute - if (getControlState(localPlayer, "fire") and strParachuteState == "READY") then + if (getPedControlState(localPlayer, "fire") and strParachuteState == "READY") then strPlayerState = "ACTION"; setPedAnimation(localPlayer, "parachute", "para_open", -2, false, false, false, true); setPedAnimationSpeed(localPlayer, "para_open", 8);