Stance Control (px_stance) | Crouch, prone, action mode management

A script by distritic

No reviews yet.
Stance Control (px_stance) | Crouch, prone, action mode management main image

Full Description

px_stance


What does it do?

This is the only stance control script you’ll ever need. Offering all of the below functionality:

  • Crawling/prone on front and back-side
  • Crouching
  • Sneaking
  • Disables action mode (that annoying “combat” stance when you just shot a gun)
  • Crawling/prone on front while aiming (experimental, does not network across clients)
  • Ragdoll player randomly on jump spam :snail:
  • Keymapping, features full control customization
  • Smooth animations and transition between stance states

No snails were injured in the making :hushed:.

I originally planned to release this resource a while back, however, I was held back due to other commitments. This resource incorporates an optimized and refactored version of my NoGrip release, for which the original topic may be found here.

Why re-invent the wheel?

A few reasons. Previously released iterations don’t conform to updated development practices, don’t provide configuration files, (subjectively) aren’t optimised well, and use legacy code. Yuck. :disguised_face:


Video Preview

The video preview demonstrates all functionality, configuration options and locale support.

:camera: Direct Link: Phynix Project | Stance Control on YouTube


Purchase

:shopping_cart: Direct Link: Stance Control on the Phynix Project Webstore

For any issues with the resource or your purchase, please leave a comment below. You may also send me a direct message on the Cfx.re forums.

:ballot_box_with_check: This resource conforms to all recommended development practices for FiveM. We have ensured that it is lightweight and implements functionality for native keybindings.

Code is accessible No
Subscription-based No
Lines (approximately) 400 (client) + 30 (config) + 7 (locale)
Requirements None
Support Yes (comments or DM)
Languages Lua, JSON

Installation

No prior coding knowledge is required. The resource comes with a full configuration file giving complete freedom over specific actions. Supports multiple languages through locale files. To install:

  1. Drag and drop the extracted px_stance folder into your resources directory.

  2. Add the line ensure px_stance to the bottom of your server.cfg file.

  3. Start your server and enjoy your new resource.

Specifically, you can find configuration options in px_stance/config.lua. You can either create your own locale within px_stance/locale, or edit the existing locale en_US_.lang to change language. That’s pretty neat. :safety_pin:

Dependencies

No additional resources are required, this script is fully standalone. :eggplant: .


Changelog

Version Date Notes
1.0.0 19/05/2023 Initial Release
1.1.0 24/05/2023 Fixed niche issue with keybindings not recognised as a command for some servers.

Please post any questions below. Be nice :slightly_smiling_face: . Enjoy!