Jump to content

How do i turn off guns?


F1re

Recommended Posts

How do i turn off guns (not shooting and no aiming), and no using fists. i want it so it doesnt unequip it but i want fists to be able to equip and make them so when i click left click, or (right click), so it doesnt try to hit.
 

thx

  • Like 1
Link to comment
28 minutes ago, F1re said:

How do i turn off guns (not shooting and no aiming), and no using fists. i want it so it doesnt unequip it but i want fists to be able to equip and make them so when i click left click, or (right click), so it doesnt try to hit.
 

thx

function disableWeaponControls()
    toggleControl(source, "fire", false)
    toggleControl(source, "aim_weapon", false)
    toggleControl(source, "next_weapon", false)
    toggleControl(source, "previous_weapon", false)
end
addEventHandler("onPlayerJoin", root, disableWeaponControls)

https://wiki.multitheftauto.com/wiki/ToggleControl

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...