fire script holes

This commit is contained in:
KingMcDonalds
2022-06-06 13:39:05 -07:00
parent ec0afd1356
commit 1577accbd1
25 changed files with 1646 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
AddTextEntry("WEAPON_HOOK", "Fire Hook")
+19
View File
@@ -0,0 +1,19 @@
fx_version 'cerulean'
games {'gta5'}
description 'Add-on weapon generated using vWeaponsToolkit'
files{
'**/weaponcomponents.meta',
'**/weaponarchetypes.meta',
'**/weaponanimations.meta',
'**/pedpersonality.meta',
'**/weapons.meta',
}
data_file 'WEAPONCOMPONENTSINFO_FILE' '**/weaponcomponents.meta'
data_file 'WEAPON_METADATA_FILE' '**/weaponarchetypes.meta'
data_file 'WEAPON_ANIMATIONS_FILE' '**/weaponanimations.meta'
data_file 'PED_PERSONALITY_FILE' '**/pedpersonality.meta'
data_file 'WEAPONINFO_FILE' '**/weapons.meta'
client_script 'cl_weaponNames.lua'
+384
View File
@@ -0,0 +1,384 @@
<?xml version="1.0" encoding="UTF - 8"?>
<CPedModelInfo__PersonalityDataList>
<MovementModeUnholsterData>
<Item>
<Name>UNHOLSTER_UNARMED</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<Clip>unarmed_holster_2h_melee</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H_MELEE</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<Clip>2h_melee_holster_2h_melee</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_1H</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<Clip>1h_holster_2h_melee</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<Clip>2h_holster_2h_melee</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_MINIGUN</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
<Item>WEAPON_GOLFCLUB</Item>
</Weapons>
<Clip>mini_holster_2h_melee</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_UNARMED_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<Clip>unarmed_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H_MELEE_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<Clip>unarmed_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_1H_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<Clip>1h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
<Item>
<Name>UNHOLSTER_2H_STEALTH</Name>
<UnholsterClips>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<Clip>2h_holster_unarmed</Clip>
</Item>
</UnholsterClips>
</Item>
</MovementModeUnholsterData>
<MovementModes>
<Item>
<Name>DEFAULT_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_ACTION@P_M_ZERO@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@UPPER</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="true"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@TRANS@DEFAULT</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_ACTION@P_M_ZERO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_STEALTH@P_M_ZERO@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>WEAPONS@MELEE_STEALTH_1H</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="false"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_STEALTH@GENERIC@TRANS@2H_MELEE</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_STEALTH@P_M_ZERO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE_STEALTH</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
<LastBattleEventHighEnergyStartTime value="0.00000000"/>
<LastBattleEventHighEnergyEndTime value="5.00000000"/>
</Item>
<Item>
<Name>MP_FEMALE_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_ACTION@P_M_ZERO@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@UPPER</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="true"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@TRANS@MP_FEMALE</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_ACTION@P_M_ZERO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_STEALTH@P_M_ZERO@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>WEAPONS@MELEE_STEALTH_1H</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="false"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_STEALTH@MP_FEMALE@2H_MELEE@TRANS</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_STEALTH@P_M_ZERO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE_STEALTH</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
<LastBattleEventHighEnergyStartTime value="0.00000000"/>
<LastBattleEventHighEnergyEndTime value="5.00000000"/>
</Item>
<Item>
<Name>MICHAEL_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_ACTION@P_M_ZERO@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@UPPER</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="true"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@TRANS@P_M_ZERO</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_ACTION@P_M_ZERO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_STEALTH@P_M_ZERO@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>WEAPONS@MELEE_STEALTH_1H</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="false"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_STEALTH@GENERIC@2H_MELEE_WEAPON@P_M_ZERO</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_STEALTH@P_M_ZERO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE_STEALTH</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
<LastBattleEventHighEnergyStartTime value="0.00000000"/>
<LastBattleEventHighEnergyEndTime value="5.00000000"/>
</Item>
<Item>
<Name>FRANKLIN_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_ACTION@P_M_ONE@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@UPPER</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="true"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@TRANS@P_M_ONE</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_ACTION@P_M_ONE@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_STEALTH@P_M_ONE@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>WEAPONS@MELEE_STEALTH_1H@P_M_ONE</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="false"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_STEALTH@GENERIC@2H_MELEE_WEAPON@P_M_ONE</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_STEALTH@P_M_ONE@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE_STEALTH</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
<LastBattleEventHighEnergyStartTime value="0.00000000"/>
<LastBattleEventHighEnergyEndTime value="5.00000000"/>
</Item>
<Item>
<Name>TREVOR_ACTION</Name>
<MovementModes>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_ACTION@P_M_TWO@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@UPPER</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="true"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_ACTION@GENERIC@2H_MELEE_GOLFCLUB@TRANS@P_M_TWO</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_ACTION@P_M_TWO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
<Item>
<Item>
<Weapons>
<Item>WEAPON_HOOK</Item>
</Weapons>
<ClipSets>
<Item>
<MovementClipSetId>MOVE_STEALTH@P_M_TWO@UNARMED@CORE</MovementClipSetId>
<WeaponClipSetId>WEAPONS@MELEE_STEALTH_1H@P_M_TWO</WeaponClipSetId>
<WeaponClipFilterId>UpperbodyAndIk_filter</WeaponClipFilterId>
<UpperBodyShadowExpressionEnabled value="true"/>
<UpperBodyFeatheredLeanEnabled value="false"/>
<UseWeaponAnimsForGrip value="false"/>
<UseLeftHandIk value="false"/>
<IdleTransitionBlendOutTime value="0.50000000"/>
<IdleTransitions>
<Item>MOVE_STEALTH@GENERIC@2H_MELEE_WEAPON@P_M_TWO</Item>
</IdleTransitions>
<UnholsterClipSetId>MOVE_STEALTH@P_M_TWO@HOLSTER</UnholsterClipSetId>
<UnholsterClipData>UNHOLSTER_2H_MELEE_STEALTH</UnholsterClipData>
</Item>
</ClipSets>
</Item>
</Item>
</MovementModes>
<LastBattleEventHighEnergyStartTime value="0.00000000"/>
<LastBattleEventHighEnergyEndTime value="5.00000000"/>
</Item>
</MovementModes>
</CPedModelInfo__PersonalityDataList>
@@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF - 8"?>
<CWeaponAnimationsSets>
<WeaponAnimationsSets>
<Item key="Default">
<WeaponAnimations>
<Item key="WEAPON_HOOK">
<CoverMovementClipSetHash/>
<CoverMovementExtraClipSetHash/>
<CoverAlternateMovementClipSetHash/>
<CoverWeaponClipSetHash/>
<MotionClipSetHash>weapons@melee_2h@golfclub</MotionClipSetHash>
<MotionFilterHash>BothArms_filter</MotionFilterHash>
<MotionCrouchClipSetHash/>
<MotionStrafingClipSetHash>move_strafe_melee_unarmed</MotionStrafingClipSetHash>
<MotionStrafingStealthClipSetHash>move_ped_strafing_stealth</MotionStrafingStealthClipSetHash>
<MotionStrafingUpperBodyClipSetHash>move_strafe@melee_large_weapon</MotionStrafingUpperBodyClipSetHash>
<WeaponClipSetHash>melee@holster</WeaponClipSetHash>
<WeaponClipSetStreamedHash/>
<WeaponClipSetHashInjured/>
<WeaponClipSetHashStealth/>
<WeaponClipSetHashHiCover/>
<AlternativeClipSetWhenBlocked/>
<ScopeWeaponClipSet/>
<AlternateAimingStandingClipSetHash/>
<AlternateAimingCrouchingClipSetHash/>
<FiringVariationsStandingClipSetHash/>
<FiringVariationsCrouchingClipSetHash/>
<AimTurnStandingClipSetHash/>
<AimTurnCrouchingClipSetHash/>
<MeleeClipSetHash>melee@large_wpn@streamed_core</MeleeClipSetHash>
<MeleeVariationClipSetHash>melee@large_wpn@streamed_variations</MeleeVariationClipSetHash>
<MeleeTauntClipSetHash/>
<MeleeSupportTauntClipSetHash/>
<MeleeStealthClipSetHash/>
<ShellShockedClipSetHash>reaction@shellshock@unarmed</ShellShockedClipSetHash>
<JumpUpperbodyClipSetHash>MOVE_JUMP@WEAPONS@2H_MELEE</JumpUpperbodyClipSetHash>
<FallUpperbodyClipSetHash>MOVE_FALL@WEAPONS@2H_MELEE</FallUpperbodyClipSetHash>
<FromStrafeTransitionUpperBodyClipSetHash/>
<SwapWeaponFilterHash/>
<SwapWeaponInLowCoverFilterHash/>
<AnimFireRateModifier value="1.000000"/>
<AnimBlindFireRateModifier value="0.000000"/>
<AnimWantingToShootFireRateModifier value="-1.000000"/>
<UseFromStrafeUpperBodyAimNetwork value="false"/>
<AimingDownTheBarrel value="true"/>
<WeaponSwapData ref="SWAP_MELEE_2H"/>
<AimGrenadeThrowNormalClipsetHash/>
<AimGrenadeThrowAlternateClipsetHash/>
</Item>
</WeaponAnimations>
</Item>
<Item key="FirstPerson">
<Fallback>Default</Fallback>
<WeaponAnimations>
<Item key="WEAPON_HOOK">
<MovementOverrideClipSetHash>move_m@generic</MovementOverrideClipSetHash>
<CoverMovementClipSetHash/>
<CoverMovementExtraClipSetHash/>
<CoverAlternateMovementClipSetHash/>
<CoverWeaponClipSetHash>Cover_Wpn_Melee1h</CoverWeaponClipSetHash>
<MotionClipSetHash>weapons@first_person@aim_idle@generic@melee@large_wpn@gclub@</MotionClipSetHash>
<MotionFilterHash>BothArms_filter</MotionFilterHash>
<MotionCrouchClipSetHash/>
<MotionStrafingClipSetHash>move_strafe_melee_unarmed_fps</MotionStrafingClipSetHash>
<MotionStrafingStealthClipSetHash>move_ped_strafing_stealth</MotionStrafingStealthClipSetHash>
<MotionStrafingUpperBodyClipSetHash>move_strafe@melee_large_weapon_fps_gclub</MotionStrafingUpperBodyClipSetHash>
<WeaponClipSetHash>weapons@first_person@aim_idle@generic@melee@large_wpn@gclub@</WeaponClipSetHash>
<WeaponClipSetStreamedHash>weapons@first_person@aim_rng@generic@pistol@pistol_str</WeaponClipSetStreamedHash>
<WeaponClipSetHashInjured/>
<WeaponClipSetHashStealth/>
<WeaponClipSetHashHiCover/>
<AlternativeClipSetWhenBlocked/>
<ScopeWeaponClipSet/>
<AlternateAimingStandingClipSetHash/>
<AlternateAimingCrouchingClipSetHash/>
<FiringVariationsStandingClipSetHash/>
<FiringVariationsCrouchingClipSetHash/>
<AimTurnStandingClipSetHash/>
<AimTurnCrouchingClipSetHash/>
<MeleeClipSetHash>melee@large_wpn@streamed_core_fps_gclub</MeleeClipSetHash>
<MeleeVariationClipSetHash>melee@large_wpn@streamed_variations</MeleeVariationClipSetHash>
<MeleeTauntClipSetHash/>
<MeleeSupportTauntClipSetHash/>
<MeleeStealthClipSetHash/>
<ShellShockedClipSetHash>reaction@shellshock@unarmed</ShellShockedClipSetHash>
<JumpUpperbodyClipSetHash/>
<FallUpperbodyClipSetHash/>
<FromStrafeTransitionUpperBodyClipSetHash/>
<SwapWeaponFilterHash>RightArm_NoSpine_filter</SwapWeaponFilterHash>
<SwapWeaponInLowCoverFilterHash>RightArm_NoSpine_filter</SwapWeaponInLowCoverFilterHash>
<AnimFireRateModifier value="1.000000"/>
<AnimBlindFireRateModifier value="0.000000"/>
<AnimWantingToShootFireRateModifier value="-1.000000"/>
<UseFromStrafeUpperBodyAimNetwork value="false"/>
<AimingDownTheBarrel value="true"/>
<WeaponSwapData ref="SWAP_DEFAULT"/>
<AimGrenadeThrowNormalClipsetHash/>
<AimGrenadeThrowAlternateClipsetHash/>
<FPSTransitionFromUnholsterHash>weapons@first_person@aim_idle@p_m_zero@melee@large_wpn@gclub@aim_trans@unholster_to_idle</FPSTransitionFromUnholsterHash>
<WeaponClipSetHashForClone>weapons@first_person@aim_idle@remote_clone@melee@two_handed@golf_club</WeaponClipSetHashForClone>
<FPSFidgetClipsetHashes>
<Item>weapons@first_person@aim_idle@p_m_zero@melee@large_wpn@gclub@fidgets@a</Item>
<Item>weapons@first_person@aim_idle@p_m_zero@melee@large_wpn@gclub@fidgets@b</Item>
<Item>weapons@first_person@aim_idle@p_m_zero@melee@large_wpn@gclub@fidgets@c</Item>
</FPSFidgetClipsetHashes>
</Item>
</WeaponAnimations>
</Item>
</WeaponAnimationsSets>
</CWeaponAnimationsSets>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF - 8"?>
<CWeaponModelInfo__InitDataList>
<InitDatas>
<Item>
<modelName>w_me_hook</modelName>
<txdName>w_me_hook</txdName>
<ptfxAssetName>NULL</ptfxAssetName>
<lodDist value="500"/>
</Item>
</InitDatas>
</CWeaponModelInfo__InitDataList>
+231
View File
@@ -0,0 +1,231 @@
<?xml version="1.0" encoding="UTF - 8"?>
<CWeaponInfoBlob>
<SlotNavigateOrder>
<Item>
<WeaponSlots>
<Item>
<OrderNumber value="403"/>
<Entry>SLOT_WEAPON_HOOK</Entry>
</Item>
</WeaponSlots>
</Item>
</SlotNavigateOrder>
<Infos>
<Item>
<Infos>
<Item type="CWeaponInfo">
<Name>WEAPON_HOOK</Name>
<Model>w_me_hook</Model>
<Audio/>
<Slot>SLOT_WEAPON_HOOK</Slot>
<DamageType>MELEE</DamageType>
<Explosion>
<Default>DONTCARE</Default>
<HitCar>DONTCARE</HitCar>
<HitTruck>DONTCARE</HitTruck>
<HitBike>DONTCARE</HitBike>
<HitBoat>DONTCARE</HitBoat>
<HitPlane>DONTCARE</HitPlane>
</Explosion>
<FireType>MELEE</FireType>
<WheelSlot>WHEEL_UNARMED_MELEE</WheelSlot>
<Group>GROUP_MELEE</Group>
<AmmoInfo ref="NULL"/>
<AimingInfo ref="UNARMED_TARGETING_RESTRAINTS"/>
<ClipSize value="0"/>
<AccuracySpread value="0.000000"/>
<AccurateModeAccuracyModifier value="0.500000"/>
<RunAndGunAccuracyModifier value="2.000000"/>
<RunAndGunAccuracyMaxModifier value="1.000000"/>
<RecoilAccuracyMax value="1.000000"/>
<RecoilErrorTime value="0.000000"/>
<RecoilRecoveryRate value="1.000000"/>
<RecoilAccuracyToAllowHeadShotAI value="1000.000000"/>
<MinHeadShotDistanceAI value="1000.000000"/>
<MaxHeadShotDistanceAI value="1000.000000"/>
<HeadShotDamageModifierAI value="1000.000000"/>
<RecoilAccuracyToAllowHeadShotPlayer value="0.175000"/>
<MinHeadShotDistancePlayer value="5.000000"/>
<MaxHeadShotDistancePlayer value="40.000000"/>
<HeadShotDamageModifierPlayer value="18.000000"/>
<Damage value="0.000000"/>
<DamageTime value="0.000000"/>
<DamageTimeInVehicle value="0.000000"/>
<DamageTimeInVehicleHeadShot value="0.000000"/>
<HitLimbsDamageModifier value="0.500000"/>
<NetworkHitLimbsDamageModifier value="0.800000"/>
<LightlyArmouredDamageModifier value="0.750000"/>
<Force value="0.000000"/>
<ForceHitPed value="100.000000"/>
<ForceHitVehicle value="0.000000"/>
<ForceHitFlyingHeli value="0.000000"/>
<OverrideForces>
<Item>
<BoneTag>BONETAG_HEAD</BoneTag>
<ForceFront value="15.000000"/>
<ForceBack value="15.000000"/>
</Item>
<Item>
<BoneTag>BONETAG_NECK</BoneTag>
<ForceFront value="15.000000"/>
<ForceBack value="10.000000"/>
</Item>
</OverrideForces>
<ForceMaxStrengthMult value="1.000000"/>
<ForceFalloffRangeStart value="0.000000"/>
<ForceFalloffRangeEnd value="50.000000"/>
<ForceFalloffMin value="1.000000"/>
<ProjectileForce value="0.000000"/>
<FragImpulse value="2250.000000"/>
<Penetration value="0.000000"/>
<VerticalLaunchAdjustment value="0.000000"/>
<DropForwardVelocity value="0.000000"/>
<Speed value="2000.000000"/>
<BulletsInBatch value="1"/>
<BatchSpread value="0.000000"/>
<ReloadTimeMP value="-1.000000"/>
<ReloadTimeSP value="-1.000000"/>
<VehicleReloadTime value="-1.000000"/>
<AnimReloadRate value="1.000000"/>
<BulletsPerAnimLoop value="1"/>
<TimeBetweenShots value="0.000000"/>
<TimeLeftBetweenShotsWhereShouldFireIsCached value="-1.000000"/>
<SpinUpTime value="0.000000"/>
<SpinTime value="0.000000"/>
<SpinDownTime value="0.000000"/>
<AlternateWaitTime value="-1.000000"/>
<BulletBendingNearRadius value="0.000000"/>
<BulletBendingFarRadius value="0.000000"/>
<BulletBendingZoomedRadius value="0.000000"/>
<Fx>
<EffectGroup>WEAPON_EFFECT_GROUP_MELEE_METAL</EffectGroup>
<FlashFx/>
<FlashFxAlt/>
<MuzzleSmokeFx/>
<MuzzleSmokeFxMinLevel value="0.000000"/>
<MuzzleSmokeFxIncPerShot value="0.000000"/>
<MuzzleSmokeFxDecPerSec value="0.000000"/>
<ShellFx/>
<TracerFx/>
<PedDamageHash/>
<TracerFxChanceSP value="0.000000"/>
<TracerFxChanceMP value="0.000000"/>
<FlashFxChanceSP value="0.000000"/>
<FlashFxChanceMP value="0.000000"/>
<FlashFxAltChance value="0.000000"/>
<FlashFxScale value="1.000000"/>
<FlashFxLightEnabled value="false"/>
<FlashFxLightCastsShadows value="false"/>
<FlashFxLightOffsetDist value="0.000000"/>
<FlashFxLightRGBAMin x="0.000000" y="0.000000" z="0.000000"/>
<FlashFxLightRGBAMax x="0.000000" y="0.000000" z="0.000000"/>
<FlashFxLightIntensityMinMax x="0.000000" y="0.000000"/>
<FlashFxLightRangeMinMax x="0.000000" y="0.000000"/>
<FlashFxLightFalloffMinMax x="0.000000" y="0.000000"/>
<GroundDisturbFxEnabled value="false"/>
<GroundDisturbFxDist value="5.000000"/>
<GroundDisturbFxNameDefault/>
<GroundDisturbFxNameSand/>
<GroundDisturbFxNameDirt/>
<GroundDisturbFxNameWater/>
<GroundDisturbFxNameFoliage/>
</Fx>
<InitialRumbleDuration value="0"/>
<InitialRumbleIntensity value="0.000000"/>
<InitialRumbleIntensityTrigger value="0.000000"/>
<RumbleDuration value="0"/>
<RumbleIntensity value="0.000000"/>
<RumbleIntensityTrigger value="0.000000"/>
<RumbleDamageIntensity value="1.000000"/>
<NetworkPlayerDamageModifier value="1.000000"/>
<NetworkPedDamageModifier value="1.000000"/>
<NetworkHeadShotPlayerDamageModifier value="1.000000"/>
<LockOnRange value="10.000000"/>
<WeaponRange value="1.600000"/>
<BulletDirectionOffsetInDegrees value="0.000000"/>
<AiSoundRange value="-1.000000"/>
<AiPotentialBlastEventRange value="-1.000000"/>
<DamageFallOffRangeMin value="1.600000"/>
<DamageFallOffRangeMax value="1.600000"/>
<DamageFallOffModifier value="0.300000"/>
<VehicleWeaponHash/>
<DefaultCameraHash>MELEE_AIM_CAMERA</DefaultCameraHash>
<CoverCameraHash>MELEE_AIM_IN_COVER_CAMERA</CoverCameraHash>
<CoverReadyToFireCameraHash/>
<RunAndGunCameraHash/>
<CinematicShootingCameraHash/>
<AlternativeOrScopedCameraHash/>
<RunAndGunAlternativeOrScopedCameraHash/>
<CinematicShootingAlternativeOrScopedCameraHash/>
<CameraFov value="50.000000"/>
<ZoomFactorForAccurateMode value="1.000000"/>
<RecoilShakeHash/>
<RecoilShakeHashFirstPerson/>
<AccuracyOffsetShakeHash/>
<MinTimeBetweenRecoilShakes value="150"/>
<RecoilShakeAmplitude value="1.000000"/>
<ExplosionShakeAmplitude value="-1.000000"/>
<ReticuleHudPosition x="0.000000" y="0.000000"/>
<AimOffsetMin x="0.000000" y="0.000000" z="0.000000"/>
<AimProbeLengthMin value="0.000000"/>
<AimOffsetMax x="0.000000" y="0.000000" z="0.000000"/>
<AimProbeLengthMax value="0.000000"/>
<AimOffsetMinFPSIdle x="0.162000" y="0.225000" z="0.052000"/>
<AimOffsetMedFPSIdle x="0.187000" y="0.197000" z="0.321000"/>
<AimOffsetMaxFPSIdle x="0.155000" y="0.038000" z="0.364000"/>
<AimOffsetEndPosMinFPSIdle x="-0.284000" y="0.612000" z="-0.205000"/>
<AimOffsetEndPosMedFPSIdle x="-0.178000" y="0.639000" z="0.616000"/>
<AimOffsetEndPosMaxFPSIdle x="-0.21700" y="-0.096000" z="0.887000"/>
<AimOffsetMinFPSLT x="0.180000" y="0.231000" z="0.669000"/>
<AimOffsetMaxFPSLT x="0.048000" y="-0.225000" z="0.409000"/>
<AimOffsetMinFPSRNG x="0.120000" y="0.275000" z="0.509000"/>
<AimOffsetMaxFPSRNG x="0.138000" y="-0.212000" z="0.518000"/>
<AimOffsetMinFPSScope x="0.090000" y="0.078000" z="0.531000"/>
<AimOffsetMaxFPSScope x="0.006000" y="-0.059000" z="0.694000"/>
<TorsoAimOffset x="0.000000" y="0.000000"/>
<TorsoCrouchedAimOffset x="0.000000" y="0.000000"/>
<LeftHandIkOffset x="0.000000" y="0.000000" z="0.000000"/>
<ReticuleMinSizeStanding value="1.000000"/>
<ReticuleMinSizeCrouched value="1.000000"/>
<ReticuleScale value="1.000000"/>
<ReticuleStyleHash/>
<FirstPersonReticuleStyleHash/>
<PickupHash>PICKUP_WEAPON_GOLFCLUB</PickupHash>
<MPPickupHash/>
<HumanNameHash>WEAPON_HOOK</HumanNameHash>
<MovementModeConditionalIdle/>
<StatName>GCLUB</StatName>
<KnockdownCount value="-1"/>
<KillshotImpulseScale value="1.000000"/>
<NmShotTuningSet>Normal</NmShotTuningSet>
<AttachPoints/>
<GunFeedBone/>
<TargetSequenceGroup/>
<WeaponFlags>AllowMeleeBlock CarriedInHand ArmourPenetrating CanLockonOnFoot CanLockonInVehicle TwoHanded MeleeClub UsableOnFoot UsableClimbing DoesRevivableDamage AllowCloseQuarterKills NoWheelStats UseFPSAimIK UseFPSSecondaryMotion</WeaponFlags>
<TintSpecValues ref="TINT_DEFAULT"/>
<FiringPatternAliases ref="NULL"/>
<ReloadUpperBodyFixupExpressionData ref="default"/>
<AmmoDiminishingRate value="0"/>
<AimingBreathingAdditiveWeight value="1.000000"/>
<FiringBreathingAdditiveWeight value="1.000000"/>
<StealthAimingBreathingAdditiveWeight value="0.000000"/>
<StealthFiringBreathingAdditiveWeight value="0.000000"/>
<AimingLeanAdditiveWeight value="1.000000"/>
<FiringLeanAdditiveWeight value="1.000000"/>
<StealthAimingLeanAdditiveWeight value="0.000000"/>
<StealthFiringLeanAdditiveWeight value="0.000000"/>
<ExpandPedCapsuleRadius value="0.000000"/>
<AudioCollisionHash/>
<HudDamage value="20"/>
<HudSpeed value="10"/>
<HudCapacity value="0"/>
<HudAccuracy value="0"/>
<HudRange value="0"/>
</Item>
</Infos>
</Item>
</Infos>
<Name>Melee</Name>
</CWeaponInfoBlob>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+98
View File
@@ -0,0 +1,98 @@
ESX = nil
QBCore = nil
if Config.UseESX then
Citizen.CreateThread(function()
while not ESX do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(500)
end
end)
RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', function(xPlayer)
ESX.PlayerData = xPlayer
if ESX.PlayerData.job and ESX.PlayerData.job.name == Config.JobName then
--Gives The Player FireHose Perms
TriggerEvent('fhose:canUseNozzles', true)
else
--Remove The FireHose Perms
TriggerEvent('fhose:canUseNozzles', false)
end
end)
RegisterNetEvent('esx:setJob')
AddEventHandler('esx:setJob', function(job)
ESX.PlayerData.job = job
if ESX.PlayerData.job and ESX.PlayerData.job.name == Config.JobName then
--Gives The Player FireHose Perms
TriggerEvent('fhose:canUseNozzles', true)
else
--Remove The FireHose Perms
TriggerEvent('fhose:canUseNozzles', false)
end
end)
elseif Config.UseQBUS then
QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent('QBCore:Client:OnPlayerLoaded')
AddEventHandler('QBCore:Client:OnPlayerLoaded', function()
local PlayerJob = QBCore.Functions.GetPlayerData().job
if PlayerJob.name == Config.JobName then
--Gives The Player FireHose Perms
TriggerEvent('fhose:canUseNozzles', true)
else
--Remove The FireHose Perms
TriggerEvent('fhose:canUseNozzles', false)
end
end)
RegisterNetEvent('QBCore:Client:OnJobUpdate')
AddEventHandler('QBCore:Client:OnJobUpdate', function(job)
local PlayerJob = job
if PlayerJob.name == Config.JobName then
--Gives The Player FireHose Perms
TriggerEvent('fhose:canUseNozzles', true)
else
--Remove The FireHose Perms
TriggerEvent('fhose:canUseNozzles', false)
end
end)
else
--Gives The Player FireHose Perms
if Config.UseWhitelist then
TriggerServerEvent('fhose:requestPermissions')
else
TriggerEvent('fhose:canUseNozzles', true)
end
end
AddEventHandler('fhose:onPumpBreak', function()
ShowNotification("~r~You Broke The Fire Hose!")
end)
AddEventHandler('fhose:requestEquipPump', function()
if Config.UseESX then
--You can do checks here for inventory or other stuff
TriggerEvent("fhose:equipPump")
elseif Config.UseQBUS then
--You can do checks here for inventory or other stuff
TriggerEvent("fhose:equipPump")
else
TriggerEvent("fhose:equipPump")
end
end)
AddEventHandler('fhose:playSplashParticle', function(pdict, pname, posx, posy, posz, heading)
Citizen.CreateThread(function()
UseParticleFxAssetNextCall(pdict)
local pfx = StartParticleFxLoopedAtCoord(pname, posx, posy, posz, 0.0, 0.0, heading, 1.0, false, false, false, false)
Citizen.Wait(200)
StopParticleFxLooped(pfx, 0)
end)
end)
function ShowNotification(msg)
SetNotificationTextEntry('STRING')
AddTextComponentString(msg)
DrawNotification(0,1)
end
+21
View File
@@ -0,0 +1,21 @@
Config = {}
--If you dont use esx nor use qbus set UseESX to false and UseQBUS to false
--You can then use the identifier whitelist or the role whitelist
--If you use esx enable this
Config.UseESX = false
--If you use qbus enable this
Config.UseQBUS = false
--Required Job To Use The FireHose
Config.JobName = "firefighter"
--Standalone identifier whitelist
--Set UseWhitelist To True To Use The Whitelist
Config.UseWhitelist = false
Config.Identifiers = {
"steam:11000012430xfa",
"license:1123d12313"
}
+39
View File
@@ -0,0 +1,39 @@
fx_version 'bodacious'
games {'gta5'}
-- Resource stuff
name 'Fire Hose'
description 'Dynamic Fire Hose Script By ToxicScripts'
version 'v1'
author 'Toxic Scripts'
-- Adds additional logging, useful when debugging issues.
client_debug_mode 'false'
server_debug_mode 'false'
-- Leave this set to '0' to prevent compatibility issues
-- and to keep the save files your users.
experimental_features_enabled '0'
ui_page 'html/ui.html'
files {
'settings/*.ini',
'html/reset.css',
'html/main.css',
'html/app.js',
'html/ui.html',
'html/sounds/*.ogg',
}
-- Files & scripts
shared_script 'config.lua'
client_scripts {
'FireHose.net.dll',
'client.lua'
}
server_scripts {
'FireHoseServer.net.dll',
'server.lua'
}
+42
View File
@@ -0,0 +1,42 @@
var colorInc = 100 / 3;
var currentProgress = 100;
setProgress(currentProgress)
function setProgress(val) {
if (val >= 0 && val <= 100) {
//Progress Bar Animation Code From https://codepen.io/junebug12851/pen/mJZNqN
var valOrig = val;
currentProgress = val;
val = 100 - val;
$(".progress").parent().removeClass();
$(".progress .water").css("top", val + "%");
if (valOrig < colorInc * 1)
$(".progress").parent().addClass("red");
else if (valOrig < colorInc * 2)
$(".progress").parent().addClass("orange");
else
$(".progress").parent().addClass("green");
} else {
$(".progress").parent().removeClass();
$(".progress").parent().addClass("green");
$(".progress .water").css("top", 0 + "%");
$(".progress .percent").text(100 + "%");
currentProgress = 100;
}
}
window.addEventListener('message', function(event) {
if (event.data.action === "openui") {
var type = event.data.type;
if (type === "show") {
$('.mainDiv').show();
} else if (type === "hide") {
$('.mainDiv').hide();
}
} else if (event.data.action === "updateTank") {
var type = event.data.type;
setProgress(type);
}
});
$('.mainDiv').hide();
+236
View File
@@ -0,0 +1,236 @@
* {
box-sizing: border-box;
}
.mainDiv {
margin-top: 50%;
margin-left: 18%;
}
.green .progress,
.red .progress,
.orange .progress {
position: relative;
border-radius: 50%;
}
.green .progress,
.red .progress,
.orange .progress {
width: 70px;
height: 70px;
}
.green .progress {
border: 5px solid #3ab93a;
}
.green .progress {
box-shadow: 0 0 20px #029502;
}
.green .progress,
.red .progress,
.orange .progress {
transition: all 1s ease;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
position: absolute;
overflow: hidden;
z-index: 2;
border-radius: 50%;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
width: 60px;
height: 60px;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
border: 1px solid #1a1a1a;
}
.green .progress .inner,
.red .progress .inner,
.orange .progress .inner {
transition: all 1s ease;
}
.green .progress .inner .water,
.red .progress .inner .water,
.orange .progress .inner .water {
position: absolute;
z-index: 1;
width: 200%;
height: 200%;
left: -50%;
border-radius: 40%;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-name: spin;
animation-name: spin;
}
.green .progress .inner .water {
top: 25%;
}
.green .progress .inner .water {
background: rgba(83, 252, 83, 0.5);
}
.green .progress .inner .water,
.red .progress .inner .water,
.orange .progress .inner .water {
transition: all 1s ease;
}
.green .progress .inner .water,
.red .progress .inner .water,
.orange .progress .inner .water {
-webkit-animation-duration: 10s;
animation-duration: 10s;
}
.green .progress .inner .water {
box-shadow: 0 0 20px #63a063;
}
.green .progress .inner .glare,
.red .progress .inner .glare,
.orange .progress .inner .glare {
position: absolute;
top: -120%;
left: -120%;
z-index: 5;
width: 200%;
height: 200%;
transform: rotate(45deg);
border-radius: 50%;
}
.green .progress .inner .glare,
.red .progress .inner .glare,
.orange .progress .inner .glare {
background-color: rgba(255, 255, 255, 0.15);
}
.green .progress .inner .glare,
.red .progress .inner .glare,
.orange .progress .inner .glare {
transition: all 1s ease;
}
.green .progress .inner .percent,
.red .progress .inner .percent,
.orange .progress .inner .percent {
position: absolute;
width: 100%;
height: 100%;
font-weight: bold;
text-align: center;
}
.green .progress .inner .percent,
.red .progress .inner .percent,
.orange .progress .inner .percent {
line-height: 60px;
font-size: 20px;
}
.green .progress .inner .percent {
color: #03c603;
}
.green .progress .inner .percent {
text-shadow: 0 0 10px #029502;
}
.green .progress .inner .percent,
.red .progress .inner .percent,
.orange .progress .inner .percent {
transition: all 1s ease;
}
.red .progress {
border: 5px solid #ed3b3b;
}
.red .progress {
box-shadow: 0 0 20px #7a0b0b;
}
.red .progress .inner .water {
top: 75%;
}
.red .progress .inner .water {
background: rgba(237, 59, 59, 0.5);
}
.red .progress .inner .water {
box-shadow: 0 0 20px #9b0e0e;
}
.red .progress .inner .percent {
color: #a30f0f;
}
.red .progress .inner .percent {
text-shadow: 0 0 10px #7a0b0b;
}
.orange .progress {
border: 5px solid #f07c3e;
}
.orange .progress {
box-shadow: 0 0 20px #7e320a;
}
.orange .progress .inner .water {
top: 50%;
}
.orange .progress .inner .water {
background: rgba(240, 124, 62, 0.5);
}
.orange .progress .inner .water {
box-shadow: 0 0 20px #a0400c;
}
.orange .progress .inner .percent {
color: #a8430d;
}
.orange .progress .inner .percent {
text-shadow: 0 0 10px #7e320a;
}
@-webkit-keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
+132
View File
@@ -0,0 +1,132 @@
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
+51
View File
@@ -0,0 +1,51 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="reset.css">
<link rel="stylesheet" type="text/css" href="main.css">
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.1.1/howler.min.js" type="text/javascript"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body style="background-color: rgba(0, 0, 0, 0);display: block;">
<div class="mainDiv">
<div class="green">
<div class="progress">
<div class="inner">
<div class="water"></div>
<div class="glare"></div>
</div>
</div>
</div>
</div>
<script src="app.js"></script>
<script>
var audioPlayer = null;
window.addEventListener('message', function(event) {
if (event.data.Type === "playSound") {
if (event.data.File === 'none') {
if (audioPlayer != null) {
audioPlayer.pause();
audioPlayer = null;
}
} else {
try {
audioPlayer = new Howl({
src: ["./sounds/" + event.data.File + ".ogg"]
});
audioPlayer.volume(0.1);
audioPlayer.play();
} catch (err) {
$.post('http://pressurewasher/msg', JSON.stringify({
text: err.message
}));
}
}
}
});
</script>
</body>
</html>
+23
View File
@@ -0,0 +1,23 @@
RegisterServerEvent('fhose:requestPermissions')
AddEventHandler('fhose:requestPermissions', function()
local idFound = false
for _, id in ipairs(GetPlayerIdentifiers(source)) do
if listcontains(Config.Identifiers, id) then
idFound = true
TriggerClientEvent('fhose:canUseNozzles', source, true)
break
end
end
if not idFound then
TriggerClientEvent('fhose:canUseNozzles', source, false)
end
end)
function listcontains(list, var)
for i = 1, #list do
if list[i] == var then
return true
end
end
return false
end
+17
View File
@@ -0,0 +1,17 @@
//This Is The Vanilla Blue Bar
{[Vanilla]
Enabled false
//Position In X,Y
Position 0,584
//The Bar Height
Height 6
//Normal Color In ARGB Format
ColorNormal 150,0,119,255
//Warning Color In ARGB Format
ColorWarning 150,0,188,255
}
//This is the native bar using html,css,js
{[Native]
Enabled true
}
+73
View File
@@ -0,0 +1,73 @@
{[Info]
//Interaction Key Use For Handling Actions (E)
InteractionKey 38
//Interaction Key Use For Handling Secondary Actions (G)
InteractionKey2 47
//Gun Type Switch Key (Middle Mouse Button)
GunTypeSwitchKey 27
//The Water Supply Decrease Rate, Decrease the value for slower water consumption
WaterSupplyRate 0.5
//FireTruck And Fire Hydrants Detection Range, If you have issues such as not seeing the pickup message
//On some trucks while they are added in the trucks.ini they might be chunky and you might need to increase this
DetectionRange 2
//Debug And See Data On Screen
EnableDebug false
//Debug And See Capacity Data On Screen
EnableCapacityDebug false
}
{[Locales]
HoverTextFont 4
//The Text Display Style, 3D for 3D text, NOTIFI for notifications, NOTIFI2 for upper left corner, SUBTITLE for screen subtitle
DisplayStyle 3D
PlaceHose [~r~E~w~] Place Fire Hose
PickupHose [~g~E~w~] Pickup Fire Hose
DropHose Press ~r~E~w~ To Drop Fire Hose
AttachHose [~g~G~w~] Attach Hydrant Hose
DettachHose [~r~G~w~] Dettach Hydrant Hose
VehiclesConnected Vehicles Already Connected
GunSwitch Switched To ~GUN_NAME~
GUN_NAME_WATER ~g~Water Gun
GUN_NAME_PRESSURE ~b~Pressurized Water Gun
GUN_NAME_FOAM ~y~Foam Gun
}
{[HoseInfo]
RopeLength 3
//Fire Truck Hose Cable Max Length
RopeMaxLength 17.0
//Hydrant Hose Cable Max Length
HydrantHoseMaxLength 17.0
RopeBendFactor 100.0
ExplodeAfterRopeBreak true
}
{[GunInfo]
//Pressure Increase Key, Arrow Right
PressureIncreaseKey 175
//Presure Decrease Key, Arrow Left
PressureDecreaseKey 174
//Pressure Increase and Decrease Rate
PressureChangeRate 0.1
//Water Gun Pressure Info, Format: Minimum,Current,Maximum
WaterGunPressure 0.4,1,2
//Foam Gun Pressure Info, Format: Minimum,Current,Maximum
FoamGunPressure 0.4,1,2
//Other Data
//The Foam And The Pressurized Water Fire Take Out Radius
FoamFireTakeOutRadius 1
WaterFireTakeOutRadius 1
//Hydrant Default Weapons
//The Truck Weapons, WATER for Vanilla Water, FOAM for Foam, PRESSURE for Pressurized Water Cannon
//If this is commented like this then the spray wouldnt be useable
//HydrantWeapons WATER
HydrantWeapons WATER
}
//Hydrant Hose Connection, You Can Edit This To Edit The Connection Location On The Hydrants
{[HydrantInfo]
//Model, Offsets(X,Y,Z)
prop_fire_hydrant_1,0.0,0.0,0.5
prop_fire_hydrant_2,0.0,0.0,0.5
prop_fire_hydrant_4,0.0,0.0,0.5
}
+146
View File
@@ -0,0 +1,146 @@
//Fire Truck Hose Connection, You Must Add Your FireTrucks Model Names Here
{[TruckInfo]
Model firetruk
//Fire Hose Attach Offset
AttachOffset 0,-3.5,0
//Other Vehicles/Hydrant Attach Offset
OtherAttachOffset 0,-3.5,0
//This The Detection Location And 3d Text location
HelpTextOffset 0,-3.5,0
Capacity 100
//Can Merge Supplies And Connect With Other Trucks
CanAttachToOthers false
//The Truck Weapons, WATER for Vanilla Water, FOAM for Foam, PRESSURE for Pressurized Water Cannon
//If this is not set then the spray wouldnt be useable
//The Truck Weapons Will Come In The Same Sequence While Switching, WATER -> FOAM -> PRESSURE
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model fdtanker
AttachOffset 0.45,-4.7,0.4
OtherAttachOffset 0.45,-4.7,0.4
HelpTextOffset 0.4,-4.7,0.4
Capacity 200
CanAttachToOthers true
//This Truck Supports No Weapon So You Cant Shoot From The Hose
}
{[TruckInfo]
Model bf350
AttachOffset -0.3,-4.0,1.3
OtherAttachOffset -0.47,-4.30,0.62
HelpTextOffset 0,-4.34,1
Capacity 150
CanAttachToOthers true
}
{[TruckInfo]
Model brush
AttachOffset -0.225,-4.04,0.9
OtherAttachOffset -0.01,-4.0,1.075
HelpTextOffset 0,-4.34,1
Capacity 150
CanAttachToOthers true
}
{[TruckInfo]
Model ENFORCER
AttachOffset -0.97,0.45,-0.45
OtherAttachOffset -0.97,-0.15,-0.4
HelpTextOffset -1.205,0.5,0.4
Capacity 120
CanAttachToOthers false
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model ftank
AttachOffset -0.9,0.6,0.2
OtherAttachOffset -0.82,0.425,0
HelpTextOffset -1.205,0.5,0.4
Capacity 80
CanAttachToOthers false
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model fwild
AttachOffset -1,-0.525,0.1
OtherAttachOffset -0.87,-0.75,0
HelpTextOffset -1.205,-0.7,0.4
Capacity 80
CanAttachToOthers false
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model mctanker
AttachOffset -0.87,0.325,0.05
OtherAttachOffset 0.475,-5.7,0.5
HelpTextOffset -1.205,0.5,0.4
Capacity 200
CanAttachToOthers true
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model pladder
AttachOffset -1,0.43,0.27
OtherAttachOffset -1,0.275,0
HelpTextOffset -1.205,0.5,0.4
Capacity 120
CanAttachToOthers false
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model fcpierceenforcer
AttachOffset -1,0.65,0.2
OtherAttachOffset -1,0.8,-0.2
HelpTextOffset -1.205,0.7,0.4
Capacity 120
CanAttachToOthers false
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model enforcerta
AttachOffset -0.97,0.45,-0.3
OtherAttachOffset -0.97,-0.15,-0.3
HelpTextOffset -1.205,0.5,0.4
Capacity 120
CanAttachToOthers false
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model enladder
AttachOffset -1,0.65,0.2
OtherAttachOffset -1,0.8,-0.2
HelpTextOffset -1.205,0.7,0.4
Capacity 120
CanAttachToOthers false
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model bulldog
AttachOffset -0.225,-4.04,0.9
OtherAttachOffset -1,-3.6,-0.1
HelpTextOffset 0,-4.34,0
Capacity 100
CanAttachToOthers true
Weapons WATER,FOAM,PRESSURE
}
{[TruckInfo]
Model enforcerf
AttachOffset -0.225,-4.04,0.9
OtherAttachOffset -1,-3.6,-0.1
HelpTextOffset 0,-4.34,0
Capacity 100
CanAttachToOthers true
Weapons WATER,FOAM,PRESSURE
}
+2
View File
@@ -171,6 +171,8 @@ start Join-Transition
start CarWipe
start EGRP-Notifications
start AI-Vehiclelock
start firehoses
start firehook
#[-----Discord Perms-----]
start discord_perms