mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat: improved RedM support (#162)
* Improvements + remove redm keybind system as it's pointless
This commit is contained in:
@@ -136,6 +136,13 @@ local function drawLines()
|
||||
end
|
||||
end
|
||||
|
||||
local isFivem = cache.game == 'fivem'
|
||||
local controls = {
|
||||
['INPUT_LOOK_LR'] = isFivem and 1 or 0xA987235F,
|
||||
['INPUT_LOOK_UD'] = isFivem and 2 or 0xD2047988,
|
||||
['INPUT_MP_TEXT_CHAT_ALL'] = isFivem and 245 or 0x9720FCEE
|
||||
}
|
||||
|
||||
local function startCreator(arg)
|
||||
creatorActive = true
|
||||
controlsActive = true
|
||||
@@ -191,9 +198,9 @@ local function startCreator(arg)
|
||||
|
||||
if controlsActive then
|
||||
DisableAllControlActions()
|
||||
EnableControlAction(0, 1, true)
|
||||
EnableControlAction(0, 2, true)
|
||||
EnableControlAction(0, 245, true) -- t
|
||||
EnableControlAction(0, controls['INPUT_LOOK_LR'], true)
|
||||
EnableControlAction(0, controls['INPUT_LOOK_UD'], true)
|
||||
EnableControlAction(0, controls['INPUT_MP_TEXT_CHAT_ALL'], true)
|
||||
local change = false
|
||||
local lStep = steps[1][step]
|
||||
local rStep = steps[2][step]
|
||||
|
||||
Reference in New Issue
Block a user