Jump to content

Karoleq

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Karoleq

  1. Hello, i am trying to make a script that makes shooting not possible in MTA, but when if isPedAiming it makes it possible again. If you guys know what i mean. Lets just say that i am trying to make weapon shooting system just like on Grafuroam or SAAF server, something like you need to aim first then you can start shooting, and if you are not aiming first you cant. The problem is: i dont know so much about scripting and my script doesnt work, heres the code: please help me function toggleControl(weapon) toggleControl(thePlayer,"fire",false) if isPedAiming then toggleControl(thePlayer,"fire",true) end end addEventHandler ( "onClientResourceStart", getLocalPlayer(), toggleControl )
×
×
  • Create New...