Using the new console key bindings

In future versions of FiveM (currently a partial implementation is on canary), you’ll be able to define keyboard bindings in a new way, as originally detailed in the 2018 design document “Configuration & Input – Redesigned“.

Here’s a sample snippet of a simple ‘hands up’ binding:

local handsUp = false

CreateThread(function()
    while true do
        Wait(0)

        if handsUp then
            TaskHandsUp(PlayerPedId(), 250, PlayerPedId(), -1, true)
        end
    end
end)

RegisterCommand('+handsup', function()
    handsUp = true
end, false)

RegisterCommand('-handsup', function()
    handsUp = false
end, false)

RegisterKeyMapping('+handsup', 'Hands Up', 'keyboard', 'i')
RegisterKeyMapping('say hi', 'Say hi', 'keyboard', 'o')
User-editable bindings.

These bindings will be editable by the user in the ‘key bindings’ option (only 1 binding per command yet, no secondary binding), and depending on user demand we’ll add a helper for computing the right hashes to use with ~INPUT_~-style display as well for help hints and similar.

In addition to that, a plethora of new console commands are added to the client F8 console, an example is below:

// bind a key to toggle the safe zone to an offscreen size and back
bind KEYBOARD F3 "+vstr hideHud showHud"
seta "hideHud" "profile_safezoneSize 500"
seta "showHud" "profile_safezoneSize 7"

// list all bindings
bind

// bind for a specific resource (similar to RegisterKeyMapping)
rbind runcode keyboard o "say hi"

// unbind
unbind keyboard f3

// set the volume way above the usual max
profile_sfxVolume 50

// ear rape?
profile_sfxVolume 9000

// toggle a variable
toggle strmem

// toggle a variable between two values
toggle con_miniConChannels * minicon:*

// see cmdlist to view all new and existing variables and commands

… and the fxd:/fivem.cfg (%appdata%\citizenfx) file contains a lot of additional user settings now in a readable format.

Join the Conversation

No comments

  1. Coinslot Pussy Porn Videos | Pornhub.com
    http://scwxrt.shop/ddr2_slotuna_ddr3_olurmu.html
    http://vbfdrg.shop/zenfone_3_sim_slot.html
    Cs 1.6 Admin Ve Slot GiriЕџi Yapma K A Y A. Loading… Unsubscribe from K A Y A? Cancel Unsubscribe. Working … Cs 1 6 Ct GeГ§me Bugu %100 CalД±ЕџД±yor videoda denendi – Duration: 8:53.
    BigWinPictures – Big Win Videos. Check out the list of all BigWinPictures accredited casinos and best online casino bonuses. Got BigWin video? Send it to us and we’ll post it to our BigWin slot video gallery. Read how to record your games and what program to use?
    KOX 2.0 ACADEMY SOCIETA’ SPORTIVA DILETTANTISTICA S.R.L. – AREA SPORT E BENESSERE – Via Spinelli 8 – 46047 Porto Mantovano (MN)45.2086110.79539: visualizza indirizzo, numero di telefono, CAP, mappa, indicazioni stradali e altre informazioni utili per KOX 2.0 ACADEMY SOCIETA’ SPORTIVA DILETTANTISTICA S.R.L. – AREA SPORT E BENESSERE in Porto Mantovano su Paginebianche.
    Play 30+ FREE 3-reel and 5-reel slots: Mountain Fox, Treasures of Egypt, Flaming Crates, Prosperous Fortune, Magic Wheel, Fruit Smoothie, Party Bonus, Video Poker and more!
    In CS 1.6, questo non sarГ  un problema. La terza buona ragione ГЁ cheaters. Quando l’intero flusso principale di giocatori (compresi quelli di una giovane etГ  e con una psiche immatura) ГЁ andato a CS: GO, in 1.6, per la maggior parte, c’erano veri fan che si godevano il gioco.
    https://woocommerce.com/posts/woocommerce-4-0-store-management/?unapproved=11585691&moderation-hash=7247eb62d7c9efe7e4e28bd97bb016f7#comment-11585691 http://www.zoom.lk/forums/showthread.php?t=41331 b6e3e07

Leave a comment

Your email address will not be published. Required fields are marked *