What's new

Guide QB-PHONE - DRIVING, WALKING WITH THE PHONE IN HAND

Ares

VAG
Admin
Joined
May 6, 2021
Messages
547
Reaction score
89,585
Points
411
Location
root
Website
vag.gg
I WAS OPENING THIS TOPIC BECAUSE I SEE A QUESTION ABOUT THIS TOPIC IN THE FORUM.
I HOPE TO HELP YOU.


FIRSTLY WE START BY ADDING THIS BELOW SETNUIFOCUS IN THE openPhone FUNCTION IN CLIENT-MAIN.LUA.

Code:
SetNuiFocusKeepInput(true)

LATER ON AGAIN IN THE SAME PLACE, WE ARE REPLACING THE PHONE-ON CYCLE WITH "F1" WITH THIS
Code:
Citizen.CreateThread(function()
    while true do
        if IsControlJustPressed(0, Config.OpenPhone) then
            if not PhoneData.isOpen then
                OpenPhone()
            end
        end
        if PhoneData.isOpen then
            DisableControlAction(0, 24, true) -- Attack
            DisableControlAction(0, 257, true) -- Attack 2
            DisableControlAction(0, 25, true) -- Aim
            DisableControlAction(0, 263, true) -- Melee Attack 1

            DisableControlAction(0, 45, true) -- Reload
            DisableControlAction(0, 21, true) -- left shift
            DisableControlAction(0, 22, true) -- Jump
            DisableControlAction(0, 44, true) -- Cover
            DisableControlAction(0, 37, true) -- Select Weapon

            DisableControlAction(0, 288,  true) -- Disable phone
            DisableControlAction(0, 245,  true) -- Disable chat
            DisableControlAction(0, 289, true) -- Inventory
            DisableControlAction(0, 170, true) -- Animations
            DisableControlAction(0, 167, true) -- Job
            DisableControlAction(0, 244, true) -- Ragdoll
            DisableControlAction(0, 303, true) -- Car lock

            DisableControlAction(0, 29, true) -- B ile işaret
            DisableControlAction(0, 81, true) -- B ile işaret
            DisableControlAction(0, 26, true) -- Disable looking behind
            DisableControlAction(0, 73, true) -- Disable clearing animation
            DisableControlAction(2, 199, true) -- Disable pause screen

            -- DisableControlAction(0, 71, true) -- Disable driving forward in vehicle
            -- DisableControlAction(0, 72, true) -- Disable reversing in vehicle

            DisableControlAction(2, 36, true) -- Disable going stealth

            DisableControlAction(0, 47, true)  -- Disable weapon
            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
        end
        Citizen.Wait(3)
    end
end)

FINALLY

WE ADD THIS CODE BELOW ALL THE PLACES WHICH WRITE SetNuiFocus(false, false) AND COMPLETE OUR PROCESS. AS A RESULT, IT WILL IMMEDIATELY LIKE THE PHONE MOVING SYSTEM IN 8BORN. (sorry I had to explain it like this because I couldn't take a video)

Code:
SetNuiFocusKeepInput(false)
 
Last edited:

sexygirl1987

Member
Joined
Mar 7, 2021
Messages
3
Reaction score
0
Points
146
Thanks dude that works however while driving and using phone the free cam also moves while along with mouse cursor
 

joe9099

Silver Elite
Joined
Jul 27, 2021
Messages
33
Reaction score
7
Points
156
Hi, i'd just like to add to this...
To fix the issue above, add the following to the disabled actions

DisableControlAction(0, 1, true)
DisableControlAction(0, 2, true)

This will stop the camera movement if you'd prefer that :)
 

Serium

Bronze Elite
Joined
Apr 8, 2021
Messages
8
Reaction score
2
Points
146
Hi bro, i have a problem. When I write a message all the other commands are activated. How can I fix this and where?
 

Fooshix

Member
Joined
Feb 22, 2022
Messages
17
Reaction score
1
Points
166
Location
Sweden
Need help with walking and driving with phone opened.Discord Fooshix#1993
Asap please.
 

deadmanxbg

Silver Elite
Joined
Feb 18, 2022
Messages
37
Reaction score
21
Points
156
Location
Bulgaria
Guys i have an issue with this phone , when i close it it keeps the phone in my hand , and i cannot do anything , its like the phone is open without the visual part of the phone.
 

LUUL POP

Member
Joined
Mar 19, 2022
Messages
6
Reaction score
1
Points
156
Location
1048 TOPSAIL
I WAS OPENING THIS TOPIC BECAUSE I SEE A QUESTION ABOUT THIS TOPIC IN THE FORUM.
I HOPE TO HELP YOU.


FIRSTLY WE START BY ADDING THIS BELOW SETNUIFOCUS IN THE openPhone FUNCTION IN CLIENT-MAIN.LUA.

Code:
SetNuiFocusKeepInput(true)

LATER ON AGAIN IN THE SAME PLACE, WE ARE REPLACING THE PHONE-ON CYCLE WITH "F1" WITH THIS
Code:
Citizen.CreateThread(function()
    while true do
        if IsControlJustPressed(0, Config.OpenPhone) then
            if not PhoneData.isOpen then
                OpenPhone()
            end
        end
        if PhoneData.isOpen then
            DisableControlAction(0, 24, true) -- Attack
            DisableControlAction(0, 257, true) -- Attack 2
            DisableControlAction(0, 25, true) -- Aim
            DisableControlAction(0, 263, true) -- Melee Attack 1

            DisableControlAction(0, 45, true) -- Reload
            DisableControlAction(0, 21, true) -- left shift
            DisableControlAction(0, 22, true) -- Jump
            DisableControlAction(0, 44, true) -- Cover
            DisableControlAction(0, 37, true) -- Select Weapon

            DisableControlAction(0, 288,  true) -- Disable phone
            DisableControlAction(0, 245,  true) -- Disable chat
            DisableControlAction(0, 289, true) -- Inventory
            DisableControlAction(0, 170, true) -- Animations
            DisableControlAction(0, 167, true) -- Job
            DisableControlAction(0, 244, true) -- Ragdoll
            DisableControlAction(0, 303, true) -- Car lock

            DisableControlAction(0, 29, true) -- B ile işaret
            DisableControlAction(0, 81, true) -- B ile işaret
            DisableControlAction(0, 26, true) -- Disable looking behind
            DisableControlAction(0, 73, true) -- Disable clearing animation
            DisableControlAction(2, 199, true) -- Disable pause screen

            -- DisableControlAction(0, 71, true) -- Disable driving forward in vehicle
            -- DisableControlAction(0, 72, true) -- Disable reversing in vehicle

            DisableControlAction(2, 36, true) -- Disable going stealth

            DisableControlAction(0, 47, true)  -- Disable weapon
            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
        end
        Citizen.Wait(3)
    end
end)

FINALLY

WE ADD THIS CODE BELOW ALL THE PLACES WHICH WRITE SetNuiFocus(false, false) AND COMPLETE OUR PROCESS. AS A RESULT, IT WILL IMMEDIATELY LIKE THE PHONE MOVING SYSTEM IN 8BORN. (sorry I had to explain it like this because I couldn't take a video)

Code:
SetNuiFocusKeepInput(false)
''
 

Kaba

Member
Joined
Oct 18, 2022
Messages
1
Reaction score
0
Points
156
Location
Estonia
Having the same issue. when i type in twitter than hotkeys will activate
 

chaball

Bronze Elite
Joined
Mar 27, 2021
Messages
14
Reaction score
3
Points
156
I WAS OPENING THIS TOPIC BECAUSE I SEE A QUESTION ABOUT THIS TOPIC IN THE FORUM.
I HOPE TO HELP YOU.


FIRSTLY WE START BY ADDING THIS BELOW SETNUIFOCUS IN THE openPhone FUNCTION IN CLIENT-MAIN.LUA.

Code:
SetNuiFocusKeepInput(true)

LATER ON AGAIN IN THE SAME PLACE, WE ARE REPLACING THE PHONE-ON CYCLE WITH "F1" WITH THIS
Code:
Citizen.CreateThread(function()
    while true do
        if IsControlJustPressed(0, Config.OpenPhone) then
            if not PhoneData.isOpen then
                OpenPhone()
            end
        end
        if PhoneData.isOpen then
            DisableControlAction(0, 24, true) -- Attack
            DisableControlAction(0, 257, true) -- Attack 2
            DisableControlAction(0, 25, true) -- Aim
            DisableControlAction(0, 263, true) -- Melee Attack 1

            DisableControlAction(0, 45, true) -- Reload
            DisableControlAction(0, 21, true) -- left shift
            DisableControlAction(0, 22, true) -- Jump
            DisableControlAction(0, 44, true) -- Cover
            DisableControlAction(0, 37, true) -- Select Weapon

            DisableControlAction(0, 288,  true) -- Disable phone
            DisableControlAction(0, 245,  true) -- Disable chat
            DisableControlAction(0, 289, true) -- Inventory
            DisableControlAction(0, 170, true) -- Animations
            DisableControlAction(0, 167, true) -- Job
            DisableControlAction(0, 244, true) -- Ragdoll
            DisableControlAction(0, 303, true) -- Car lock

            DisableControlAction(0, 29, true) -- B ile işaret
            DisableControlAction(0, 81, true) -- B ile işaret
            DisableControlAction(0, 26, true) -- Disable looking behind
            DisableControlAction(0, 73, true) -- Disable clearing animation
            DisableControlAction(2, 199, true) -- Disable pause screen

            -- DisableControlAction(0, 71, true) -- Disable driving forward in vehicle
            -- DisableControlAction(0, 72, true) -- Disable reversing in vehicle

            DisableControlAction(2, 36, true) -- Disable going stealth

            DisableControlAction(0, 47, true)  -- Disable weapon
            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
        end
        Citizen.Wait(3)
    end
end)

FINALLY

WE ADD THIS CODE BELOW ALL THE PLACES WHICH WRITE SetNuiFocus(false, false) AND COMPLETE OUR PROCESS. AS A RESULT, IT WILL IMMEDIATELY LIKE THE PHONE MOVING SYSTEM IN 8BORN. (sorry I had to explain it like this because I couldn't take a video)

Code:
SetNuiFocusKeepInput(false)
tried doing this but I'm getting problems with
when someone doesn't have numpad in his keyboard it keeps using inventory slots when using numbers
 
Top