alberttheprince / rpemotes-reborn

Community driven FiveM emote menu with human, animal, and prop support.
GNU General Public License v3.0
64 stars 41 forks source link

[request] Disable crouch/crawl entirely #25

Closed keiraskyler closed 2 months ago

keiraskyler commented 2 months ago

Describe the Feature A way to completely disable the crouch/crawl feature in the server temporarily, with the /crouch /crawl commands to disable these from happening when pressing their keybinds.

Example/Mock up Type /crouch or /crawl into the text box as a command and then the player cannot crouch or crawl until the command is toggled back on to enable crouch or crawl.

If some other way to disable it would work better I'd be happy for that too this is just a suggestion as I have completely unbound stealth mode and crouch and crawl and still crouch or crawl with the keybinds.

iSentrie commented 2 months ago

You unbound them and they still actively working?

keiraskyler commented 2 months ago

Yes correct

alberttheprince commented 2 months ago

@iSentrie I think Keira is looking for a way to have a crouch/crawl lock out keybind, while still having crouch available.

i.e.

You can crouch, but if you type /crouchtoggle you can't crouch until typing /crouchtoggle again. As it is, crouching does not work if you set it as false in the config.

I'm not sure the use case for this, @keiraskyler would you be able to explain where this would be useful to have? Are there times when you press crouch and you don't want to crouch?

keiraskyler commented 2 months ago

Yes exactly correct!!

keiraskyler commented 2 months ago

When currently using freecam and taking screenshots for the server ctrl is a main key for camera functions that can’t be rebound and it makes the character move when you don’t want it to

iSentrie commented 2 months ago

now that's a mess to read, ill skip this

alberttheprince commented 2 months ago

Cleaned up Keira's comments, assume github email formatting was messing it up.

alberttheprince commented 2 months ago

I've contacted the original creator of the code dealing with crouching, will ask if that's something he's interested in adding.

iSentrie commented 2 months ago

It's just ~1 more line of code, i don't see any use for this for majority, server dev's can adjust this themselfs.

alberttheprince commented 2 months ago

Sure, we'll leave this open for anyone interested in adding that + a line to the config. This is the crouch/crawl resource originally added to rpemotes, but it seems to have been improved since it was added:

https://github.com/MadsLeander/crouch_crawl

iSentrie commented 2 months ago

Sure, we'll leave this open for anyone interested in adding that + a line to the config. This is the crouch/crawl resource originally added to rpemotes, but it seems to have been improved since it was added:

https://github.com/MadsLeander/crouch_crawl

his case is actually covered by use of canEmote states, no need to keep it open since state is now fully working, he has to change states between his freecam toggles

LocalPlayer.state:set('canEmote', false, true) -- stops emoting
LocalPlayer.state:set('canEmote', true, true) -- allows emoting
alberttheprince commented 2 months ago

@keiraskyler If you can edit your resource, this would probably be the right way to use this.

iSentrie commented 2 months ago

Closing because of no response and script already has functionality for your needs.

keiraskyler commented 2 months ago

Currently been dealing with a hurricane and flooding. Apologies for only being able to email!

iSentrie commented 2 months ago

Currently been dealing with a hurricane and flooding. Apologies for only being able to email!

Sorry to hear that, however solution is this

LocalPlayer.state:set('canEmote', false, true) -- stops emoting
LocalPlayer.state:set('canEmote', true, true) -- allows emoting