Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Question Scripts resistant to changing the default binding

Drip Jacker

Silver Elite
Joined
Oct 25, 2022
Messages
32
Reaction score
19
Points
156
Location
Poland
I have a problem with the default button binding on my server(Qb-core). So far, in the client->main.lua file, changing the "RegisterKeyMapping" line helped and the keys were correctly set as I wanted by default. However, I have a problem with the "pma-voice" and "nui_drawtext" scripts. In the first script,microphone volume button, in the second, the scene creation button does not allow for changes, and despite the change in main.lua, the binding remains at the previous values. As if it was bound somewhere else. Please help. Below are the lines that stubbornly refuse to change.

"Pma-voice"
RegisterKeyMapping('+cycleproximity', 'Cycle Proximity', 'keyboard', GetConvar('voice_defaultCycle', 'F5'))

"Nui_drawtext"
RegisterKeyMapping('createscene', 'Create Scene', 'INSERT', Config.CreateSceneKey)
RegisterKeyMapping('deletescene', 'Delete Scene', 'DELETE', Config.DeleteSceneKey)
 
Top