Reaper Posted December 21, 2017 Posted December 21, 2017 How to disable Vehicle fire (Rhino firing and Hydra Firing) in free-roam game mode 2017 new update..
Storm-Hanma Posted December 21, 2017 Posted December 21, 2017 (edited) Check this use toggle control function See function disableFireForHydra ( theVehicle, seat ) if ( getElementModel ( theVehicle ) == 520 ) then -- if they entered a hydra setVehicleGunsEnabled ( theVehicle, false ) -- disable their guns else -- if they entered another vehicle setVehicleGunsEnabled ( theVehicle, true ) -- enable their guns end end addEventHandler ( "onClientPlayerEnterVehicle", getLocalPlayer(), disableFireForHydra ) See Also Replace rhino id for rhino !! Another example use toggle control function disableFireForHydra ( theVehicle, seat, jacked ) if ( getElementModel ( theVehicle ) == 520 ) then -- if they entered a hydra toggleControl ( source, "vehicle_secondary_fire", false ) -- disable their fire key else -- if they entered another vehicle toggleControl ( source, "vehicle_secondary_fire", true ) -- enable their fire key end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), disableFireForHydra ) Click to collapse [-]Example Sorry for double post !! Both r same use toggle control Client function disableFireForHydra ( theVehicle, seat ) if ( getElementModel ( theVehicle ) == 520 ) then -- if they entered a hydra toggleControl ( "vehicle_secondary_fire", false ) -- disable their fire key else -- if they entered another vehicle toggleControl ( "vehicle_secondary_fire", true ) -- enable their fire key end end addEventHandler ( "onClientPlayerVehicleEnter", getLocalPlayer(), disableFireForHydra ) Fr rhino replace hydra id with rhino id Edited December 21, 2017 by Khadeer143
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now