Jump to content

[HELP ME] Disabled fire in my script, but players can shoot.. Why?


Turbe$Z

Recommended Posts

Find out which control is bound to "tab" and disable it too.

I think there are at least 2 more controls to shoot with, "action" and the enter vehicle control, which is hard disable, since players won't be able to get in cars anymore.

Disabling the ability to aim can be helpful there.

Link to comment
18 hours ago, Bonsai said:

Find out which control is bound to "tab" and disable it too.

I think there are at least 2 more controls to shoot with, "action" and the enter vehicle control, which is hard disable, since players won't be able to get in cars anymore.

Disabling the ability to aim can be helpful there.

@Bonsai, toggleControl will disable fire from every key that fire is bound to.

Use this if your code is server sided:

for _, player in ipairs(getElementsByType("player")) do
  toggleControl(player, "fire", false)
end  

 

Edited by Gravestone
Link to comment
3 hours ago, Gravestone said:

@Bonsai, toggleControl will disable fire from every key that fire is bound to.

Use this if your code is server sided:


for _, player in ipairs(getElementsByType("player")) do
  toggleControl(player, "fire", false)
end  

 

I know, but "fire" is not the only control to shoot a weapon.

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...