Skip to content
This repository has been archived by the owner on Nov 28, 2020. It is now read-only.

v1.1.0

Latest
Compare
Choose a tag to compare
@ekralc ekralc released this 26 May 13:40

It's been a while since an update to this, I'm still working on some other stuff, including animations. I know that this is a feature people are looking for, but I'd like to make it so that animations can be disabled for specific holsters (for ones that aren't on the hip), which is proving difficult to implement in a way that's backward compatible.

Version Checking

Now the script will let you know when to update! If you really don't like this, you can turn this off by setting version_check 'no' in fxmanifest.lua

Multiple Weapons Support

This update adds support for multiple weapons in the config! You can now add any weapons you want to the list in config. The script will then change your holsters whenever any of the weapons specified are drawn, keep in mind that this is not configurable for specific holsters; support for that may come later.

["weapon"] = { "WEAPON_PISTOL", "WEAPON_COMBATPISTOL" },

If you really want to be fancy then you can use backticks, which retrieves the hash at compile time instead of runtime. Read more about this here: https://cookbook.fivem.net/2019/06/23/lua-support-for-compile-time-jenkins-hashes/

["weapon"] = { `WEAPON_PISTOL`, `WEAPON_COMBATPISTOL` },

Don't worry, this is still backward compatible with your old configs. The script will still interpret singular weapons like this as normal.

["weapon"] = "WEAPON_PISTOL"