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 fix qb-target

snitchers

Developer
Joined
Oct 12, 2021
Messages
72
Solutions
4
Reaction score
1,657
Points
306
Location
Netherlands
Put this code anywhere inside any client script:


Code:
Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        DisableControlAction(1, 140, true)
        if not IsPlayerTargettingAnything(PlayerId()) then
            DisableControlAction(1, 141, true)

            DisableControlAction(1, 142, true)
        end
    end
end)

This way it won't kick or punch when not targeting someone. You need to target someone (right click) and than you can kick or punch. This way you also won't accidantly attack someone.
 

mike lee

Member
Joined
Jan 18, 2023
Messages
4
Reaction score
0
Points
156
Location
United States
Put this code anywhere inside any client script:


Code:
Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        DisableControlAction(1, 140, true)
        if not IsPlayerTargettingAnything(PlayerId()) then
            DisableControlAction(1, 141, true)

            DisableControlAction(1, 142, true)
        end
    end
end)

This way it won't kick or punch when not targeting someone. You need to target someone (right click) and than you can kick or punch. This way you also won't accidantly attack someone.
can you help me i dont no were to add it at
 
Top