structura foldere

mutat kq- folders in un singur folder [kq]
This commit is contained in:
2026-03-30 01:55:03 +03:00
parent af1286d583
commit c291b81f26
2319 changed files with 0 additions and 14 deletions
@@ -0,0 +1,76 @@
function DisableControlActions()
-- Disables mouse actions
DisableControlAction(0, 18, true) -- Disable mouse
DisableControlAction(0, 69, true) -- Disable mouse
DisableControlAction(0, 92, true) -- Disable mouse
DisableControlAction(0, 106, true) -- Disable mouse
DisableControlAction(0, 122, true) -- Disable mouse
-- Disables mouse look actions
if not KeepInput then
DisableControlAction(0, 12, true) -- Disable mouse look
DisableControlAction(0, 13, true) -- Disable mouse look
DisableControlAction(0, 1, true) -- Disable mouse look
DisableControlAction(0, 2, true) -- Disable mouse look
DisableControlAction(0, 3, true) -- Disable mouse look
DisableControlAction(0, 4, true) -- Disable mouse look
DisableControlAction(0, 5, true) -- Disable mouse look
DisableControlAction(0, 6, true) -- Disable mouse look
end
-- Disables melee combat actions
DisableControlAction(0, 263, true) -- Disable melee
DisableControlAction(0, 264, true) -- Disable melee
DisableControlAction(0, 257, true) -- Disable melee
DisableControlAction(0, 140, true) -- Disable melee
DisableControlAction(0, 141, true) -- Disable melee
DisableControlAction(0, 142, true) -- Disable melee
DisableControlAction(0, 143, true) -- Disable melee
-- Disables escape and chat actions
DisableControlAction(0, 177, true) -- Disable escape
DisableControlAction(0, 200, true) -- Disable escape
DisableControlAction(0, 202, true) -- Disable escape
DisableControlAction(0, 322, true) -- Disable escape
DisableControlAction(0, 245, true) -- Disable chat
DisableControlAction(0, 199, true) -- Disable chat
-- Disables aiming and shooting actions
DisableControlAction(0, 25, true) -- Disable aim
DisableControlAction(0, 24, true) -- Disable shoot
-- Disables other specific actions
DisableControlAction(0, 45, true) -- Disable Reload (R)
DisableControlAction(0, 44, true) -- Disable Cover (Q)
DisableControlAction(0, 0, true) -- Disable Camera (V)
DisableControlAction(0, 26, true) -- Disable Camera Back (C)
DisableControlAction(0, 20, true) -- Disable Z
DisableControlAction(0, 236, true) -- Disable V
-- Disables numerical actions
DisableControlAction(0, 157, true) -- Disable 1
DisableControlAction(0, 158, true) -- Disable 2
DisableControlAction(0, 160, true) -- Disable 3
DisableControlAction(0, 164, true) -- Disable 4
DisableControlAction(0, 165, true) -- Disable 5
DisableControlAction(0, 159, true) -- Disable 6
DisableControlAction(0, 161, true) -- Disable 7
DisableControlAction(0, 162, true) -- Disable 8
DisableControlAction(0, 163, true) -- Disable 9
-- Other specific disablements
DisableControlAction(0, 73, true) -- Disable X
DisableControlAction(0, 47, true) -- Disable G
DisableControlAction(0, 58, true) -- Disable G
DisableControlAction(0, 74, true) -- Disable H
-- Disables control action for second player
DisableControlAction(1, 18, true) -- Enter / Exit vehicle
DisableControlAction(1, 24, true) -- Change weapon
DisableControlAction(1, 69, true) -- Fire
DisableControlAction(1, 92, true) -- Aim
DisableControlAction(1, 106, true) -- Jump
DisableControlAction(1, 122, true) -- Sprint
DisableControlAction(1, 135, true) -- Duck / Cover
-- ... (continues the list for the second player)
end
@@ -0,0 +1,39 @@
---@param emergency? boolean
---@return boolean
function TogglePhone(emergency)
if not emergency and (isDead() or not canOpenPhone) then return false end
if not Config.UniquePhone then
local hasData = lib.callback.await('phone:server:HasPhone', 0)
if not hasData.phone then
SendTextMessage(Lang('PHONE_NOTIFICATION_PHONE_NO_PHONE'), 'error')
return false
end
local meta = TriggerServerCallbackSync('phone:GetPhoneDataForWithoutMeta')
OpenPhone(hasData.phone, Config.PhonesProps[hasData.name], meta)
return true
end
if not MetaData then
TriggerServerEvent('phone:server:openRandomItemPhone')
return true
end
local phoneData, name = TriggerServerCallbackSync('phone:server:checkHasPhoneWithUniqueId', MetaData.uniqueId)
if not phoneData then
if MetaData then
MetaData = nil
TriggerServerEvent('phone:server:openRandomItemPhone')
-- SendTextMessage('Your phone is fucked up', 'inform')
return true
end
SendTextMessage(Lang('PHONE_NOTIFICATION_PHONE_NO_PHONE'), 'error')
return false
end
OpenPhone(CurrentPhoneData.type, CurrentPhoneData.phoneColor, MetaData)
return true
end
if not Config.OpenPhoneByPress and Config.UniquePhone then return end
RegisterKeyMapping('TooglePhone', 'Open phone', 'keyboard', Config.OpenPhone)
RegisterCommand('TooglePhone', function()
TogglePhone()
end, false)