Hooks
Hooks provided by the Raised Weapons module for managing weapon raising and lowering mechanics.
Overview
The Raised Weapons module adds auto-lowering of weapons when running, a raise delay set by weaponraisespeed, prevention of accidental fire, a toggle to keep weapons lowered, and compatibility with melee weapons.. It provides comprehensive hook integration for customizing managing weapon raising and lowering mechanics and extending functionality.
OnWeaponLowered
đ Purpose
Called when a player's weapon is lowered.
â° When Called
After the weapon raised state changes to false.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
player |
Player | The player whose weapon was lowered |
weapon |
Weapon | The weapon that was lowered |
âŠī¸ Returns
nil
đ Realm
Shared
Overview
The Raised Weapons module adds auto-lowering of weapons when running, a raise delay set by weaponraisespeed, prevention of accidental fire, a toggle to keep weapons lowered, and compatibility with melee weapons.. It provides comprehensive hook integration for customizing managing weapon raising and lowering mechanics and extending functionality.
OnWeaponRaised
đ Purpose
Called when a player's weapon is raised.
â° When Called
After the weapon raised state changes to true.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
player |
Player | The player whose weapon was raised |
weapon |
Weapon | The weapon that was raised |
âŠī¸ Returns
nil
đ Realm
Shared
Overview
The Raised Weapons module adds auto-lowering of weapons when running, a raise delay set by weaponraisespeed, prevention of accidental fire, a toggle to keep weapons lowered, and compatibility with melee weapons.. It provides comprehensive hook integration for customizing managing weapon raising and lowering mechanics and extending functionality.
OverrideWeaponRaiseSpeed
đ Purpose
Called to override the weapon raise speed.
â° When Called
When calculating weapon raise speed.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
client |
Player | The player raising the weapon |
raiseSpeed |
number | The default raise speed |
âŠī¸ Returns
number - Return a number to override the speed, nil for default
đ Realm
Server
Overview
The Raised Weapons module adds auto-lowering of weapons when running, a raise delay set by weaponraisespeed, prevention of accidental fire, a toggle to keep weapons lowered, and compatibility with melee weapons.. It provides comprehensive hook integration for customizing managing weapon raising and lowering mechanics and extending functionality.
PlayerWeaponRaisedChanged
đ Purpose
Called when a player's weapon raised state changes.
â° When Called
When the raised state transitions between true and false.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
player |
Player | The player whose state changed |
state |
boolean | The new raised state |
âŠī¸ Returns
nil
đ Realm
Shared
Overview
The Raised Weapons module adds auto-lowering of weapons when running, a raise delay set by weaponraisespeed, prevention of accidental fire, a toggle to keep weapons lowered, and compatibility with melee weapons.. It provides comprehensive hook integration for customizing managing weapon raising and lowering mechanics and extending functionality.
ShouldWeaponBeRaised
đ Purpose
Called to determine if a weapon should be raised.
â° When Called
During weapon raise state checking.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
player |
Player | The player holding the weapon |
weapon |
Weapon | The weapon being checked |
âŠī¸ Returns
boolean - Return true to force raise, false to prevent, nil for default
đ Realm
Shared
Overview
The Raised Weapons module adds auto-lowering of weapons when running, a raise delay set by weaponraisespeed, prevention of accidental fire, a toggle to keep weapons lowered, and compatibility with melee weapons.. It provides comprehensive hook integration for customizing managing weapon raising and lowering mechanics and extending functionality.
WeaponHolsterCancelled
đ Purpose
Called when a weapon holster is cancelled.
â° When Called
When a holster is interrupted or cancelled.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
client |
Player | The player whose holster was cancelled |
âŠī¸ Returns
nil
đ Realm
Server
Overview
The Raised Weapons module adds auto-lowering of weapons when running, a raise delay set by weaponraisespeed, prevention of accidental fire, a toggle to keep weapons lowered, and compatibility with melee weapons.. It provides comprehensive hook integration for customizing managing weapon raising and lowering mechanics and extending functionality.
WeaponHolsterScheduled
đ Purpose
Called when a weapon holster is scheduled.
â° When Called
When a holster action is initiated.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
client |
Player | The player holstering the weapon |
raiseSpeed |
number | The speed of the holster action |
âŠī¸ Returns
nil
đ Realm
Server
Overview
The Raised Weapons module adds auto-lowering of weapons when running, a raise delay set by weaponraisespeed, prevention of accidental fire, a toggle to keep weapons lowered, and compatibility with melee weapons.. It provides comprehensive hook integration for customizing managing weapon raising and lowering mechanics and extending functionality.
WeaponRaiseScheduled
đ Purpose
Called when a weapon raise is scheduled.
â° When Called
When a raise action is initiated.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
client |
Player | The player raising the weapon |
newWeapon |
Weapon | The weapon being raised |
raiseSpeed |
number | The speed of the raise action |
âŠī¸ Returns
nil
đ Realm
Server