@@ -60,7 +60,8 @@ local function handleParachuteLogic()
60
60
61
61
-- can we go to freefall/skydive
62
62
if (strPlayerState == " GROUND" and bHasParachute ) then
63
- fRotationX , fRotationY , fRotationZ = getElementRotation (localPlayer );
63
+ local _ , _ , fRotationZ_ = getElementRotation (localPlayer );
64
+ fRotationZ = fRotationZ_
64
65
65
66
if (not isPedOnGround (localPlayer ) and not getPedContactElement (localPlayer )) then
66
67
if (fVZ < - 0.1 ) then
@@ -228,7 +229,7 @@ local function handleParachuteLogic()
228
229
--]]
229
230
230
231
-- player opening parachute
231
- if (getControlState (localPlayer , " fire" ) and strParachuteState == " READY" ) then
232
+ if (getPedControlState (localPlayer , " fire" ) and strParachuteState == " READY" ) then
232
233
strPlayerState = " ACTION" ;
233
234
setPedAnimation (localPlayer , " parachute" , " para_open" , - 2 , false , false , false , true );
234
235
setPedAnimationSpeed (localPlayer , " para_open" , 8 );
@@ -340,9 +341,8 @@ local function handleParachuteLogic()
340
341
end
341
342
342
343
-- player landed
343
- if (strPlayerState == " LANDED" ) then
344
-
345
- end
344
+ -- if (strPlayerState == "LANDED") then
345
+ -- end
346
346
end
347
347
end
348
348
addEventHandler (" onClientRender" , root , handleParachuteLogic );
@@ -361,8 +361,8 @@ function cleanupParachute(bLandedGood)
361
361
toggleControl (" next_weapon" , true );
362
362
toggleControl (" previous_weapon" , true );
363
363
364
- if (not bLandedGood ) then
364
+ -- if (not bLandedGood) then
365
365
-- todo: remove weapon from player via server
366
366
-- takeWeapon(client, 46);
367
- end
368
- end
367
+ -- end
368
+ end
0 commit comments