Deep thinker Posted December 28, 2017 Share Posted December 28, 2017 انا كنت عايز الي ال 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
Deep thinker Posted December 28, 2017 Author Share Posted December 28, 2017 (edited) @-Le[3]bA. WARNING: antihover\client.lua:30: Bad argument @'getVehicleAdjustableProperty' [Expected Vehicle at argument 1,got number'520'] getVehicleAdjustableProperty(getVehicleNameFromModel(model)) ? Edited December 28, 2017 by Deep thinker Link to comment
Master_MTA Posted January 1, 2018 Share Posted January 1, 2018 انا صراحة مافهمت وش تبي تسوي لكن جرب 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
Deep thinker Posted January 2, 2018 Author Share Posted January 2, 2018 (edited) 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 January 2, 2018 by Deep thinker Link to comment
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