Jump to content

استفسار


Recommended Posts

انا كنت عايز الي ال hydra متضربش لما تكون عاملة hover 

الكود 

armedVehicles = {[425]=true, [520]=true, [476]=true, [447]=true, [430]=true, [432]=true, [464]=true, [407]=true, [601]=true}
function vehicleWeaponFire(key, keyState, vehicleFireType)
    local vehModel = getElementModel(getPedOccupiedVehicle(localPlayer))
    if (armedVehicles[vehModel]) then
        triggerEvent("onClientVehicleWeaponFire", localPlayer, vehicleFireType, vehModel)
    end
end
bindKey("vehicle_fire", "down", vehicleWeaponFire, "primary")
bindKey("vehicle_secondary_fire", "down", vehicleWeaponFire, "secondary")


addEvent ( "onClientVehicleWeaponFire" , true ) ; 
addEventHandler ( "onClientVehicleWeaponFire" , root , function ( _ , model )  
if ( model == 520 ) then 
    local adjusted = getVehicleAdjustableProperty(model)
           if adjusted == "5000" then
           toggleControl ( "vehicle_secondary_fire", false )
           end
           end
           end)

 

Link to comment

انا صراحة مافهمت وش تبي تسوي لكن جرب

armedVehicles = {[425]=true, [520]=true, [476]=true, [447]=true, [430]=true, [432]=true, [464]=true, [407]=true, [601]=true}
function vehicleWeaponFire(key, keyState, vehicleFireType)
    local vehModel = getElementModel(getPedOccupiedVehicle(localPlayer))
    if (armedVehicles[vehModel]) then
        triggerEvent("onClientVehicleWeaponFire", localPlayer, vehicleFireType, vehModel)
    end
end
bindKey("vehicle_fire", "down", vehicleWeaponFire, "primary")
bindKey("vehicle_secondary_fire", "down", vehicleWeaponFire, "secondary")


addEvent ( "onClientVehicleWeaponFire" , true ) ; 
addEventHandler ( "onClientVehicleWeaponFire" , root , function ( _ , model )  
if ( tonumber(model) == 520 ) then 
    local adjusted = getVehicleAdjustableProperty(model)
           if tonumber(adjusted) == 5000 then
           toggleControl ( "vehicle_secondary_fire", false )
           end
           end
           end)

 

Link to comment
On 1/1/2018 at 03:10, Master_MTA said:

انا صراحة مافهمت وش تبي تسوي لكن جرب


armedVehicles = {[425]=true, [520]=true, [476]=true, [447]=true, [430]=true, [432]=true, [464]=true, [407]=true, [601]=true}
function vehicleWeaponFire(key, keyState, vehicleFireType)
    local vehModel = getElementModel(getPedOccupiedVehicle(localPlayer))
    if (armedVehicles[vehModel]) then
        triggerEvent("onClientVehicleWeaponFire", localPlayer, vehicleFireType, vehModel)
    end
end
bindKey("vehicle_fire", "down", vehicleWeaponFire, "primary")
bindKey("vehicle_secondary_fire", "down", vehicleWeaponFire, "secondary")


addEvent ( "onClientVehicleWeaponFire" , true ) ; 
addEventHandler ( "onClientVehicleWeaponFire" , root , function ( _ , model )  
if ( tonumber(model) == 520 ) then 
    local adjusted = getVehicleAdjustableProperty(model)
           if tonumber(adjusted) == 5000 then
           toggleControl ( "vehicle_secondary_fire", false )
           end
           end
           end)

 

https://imgur.com/a/QlAbT

انا عايز اخليه ميضربش في سرعة اققل من ال 150 او لما تكون الهايدر في وضعية الهوفر

Edited by Deep thinker
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...