Jump to content
×
×
  • Create New...

Howto: Consolidate keybindings/menus


Recommended Posts

Hi everyone,

 

I just recently got back into FivePD, installed some scripts/mods and one thing started again I really hate: Having too many different keybindings to remember

So I'm now using RadialMenu to consolidate some of them.

It's supposed to be used with chat-commands, but what about non-chat commands? It depends.

 

If the script is using the newer method of FiveM Keybindings (like FivePD), it's simple:

Open the file %AppData%\CitizenFX\fivem.cfg with a text editor. In this file you'll find all your keybindings and the command it is using in quotation marks.

Just use the command(s) you want in your RadialMenu config (e.g. +fivepd_openCalloutMenu)

 

If the script is not using this method it gets a little bit trickier. Either you edit the script to include chat commands or you use a helper script to convert chat command to key presses.

Unfortunately not all keys worked for me, so you might have to experiment a little bit.

 

The helper script is pretty straigt forward:

Create a new folder in your resources folder (e.g. ChatToKey), create the following 2 files, add the script to your server.cfg and start the script (e.g. ChatToKey).

Now you can use the chatcommand "chattokey" followed by the control index from this site (e.g. "chattokey 166" for F5).

 

fxmanifest.lua:

fx_version 'adamant'
games { 'gta5' }

author 'Bogi'
description 'chattokey'
version '1.0.0'

client_script 'ChatToKey.lua'

ChatToKey.lua:

RegisterCommand("chattokey", function(source, args, rawCommand)
	SetControlNormal(0, tonumber(args[1]), 1.0)
end, false)

 

Hope this helps some of you!

Link to post
Share on other sites
  • NorthCam18 featured and pinned this topic
  • NorthCam18 unpinned and unfeatured this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

Important Information

Please view the site: Terms of Use, Privacy Policy, and Guidelines. // IMPORTANT: We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.