[This is preliminary documentation and is subject to change.]
Gives the specified weapon component to the specified weapon belonging to this Ped.
The Ped must own the specified weapon to receive the component.
The weapon asset can be one of the following:
Name | Description |
---|---|
WEAPON_UNARMED | WEAPON_UNARMED |
WEAPON_ANIMAL | WEAPON_ANIMAL |
WEAPON_COUGAR | WEAPON_COUGAR |
WEAPON_KNIFE | WEAPON_KNIFE |
WEAPON_NIGHTSTICK | WEAPON_NIGHTSTICK |
WEAPON_HAMMER | WEAPON_HAMMER |
WEAPON_BAT | WEAPON_BAT |
WEAPON_GOLFCLUB | WEAPON_GOLFCLUB |
WEAPON_CROWBAR | WEAPON_CROWBAR |
WEAPON_PISTOL | WEAPON_PISTOL |
WEAPON_COMBATPISTOL | WEAPON_COMBATPISTOL |
WEAPON_APPISTOL | WEAPON_APPISTOL |
WEAPON_PISTOL50 | WEAPON_PISTOL50 |
WEAPON_MICROSMG | WEAPON_MICROSMG |
WEAPON_SMG | WEAPON_SMG |
WEAPON_ASSAULTSMG | WEAPON_ASSAULTSMG |
WEAPON_ASSAULTRIFLE | WEAPON_ASSAULTRIFLE |
WEAPON_CARBINERIFLE | WEAPON_CARBINERIFLE |
WEAPON_ADVANCEDRIFLE | WEAPON_ADVANCEDRIFLE |
WEAPON_MG | WEAPON_MG |
WEAPON_COMBATMG | WEAPON_COMBATMG |
WEAPON_PUMPSHOTGUN | WEAPON_PUMPSHOTGUN |
WEAPON_SAWNOFFSHOTGUN | WEAPON_SAWNOFFSHOTGUN |
WEAPON_ASSAULTSHOTGUN | WEAPON_ASSAULTSHOTGUN |
WEAPON_BULLPUPSHOTGUN | WEAPON_BULLPUPSHOTGUN |
WEAPON_STUNGUN | WEAPON_STUNGUN |
WEAPON_SNIPERRIFLE | WEAPON_SNIPERRIFLE |
WEAPON_HEAVYSNIPER | WEAPON_HEAVYSNIPER |
WEAPON_REMOTESNIPER | WEAPON_REMOTESNIPER |
WEAPON_GRENADELAUNCHER | WEAPON_GRENADELAUNCHER |
WEAPON_GRENADELAUNCHER_SMOKE | WEAPON_GRENADELAUNCHER_SMOKE |
WEAPON_RPG | WEAPON_RPG |
WEAPON_PASSENGER_ROCKET | WEAPON_PASSENGER_ROCKET |
WEAPON_AIRSTRIKE_ROCKET | WEAPON_AIRSTRIKE_ROCKET |
WEAPON_STINGER | WEAPON_STINGER |
WEAPON_MINIGUN | WEAPON_MINIGUN |
WEAPON_GRENADE | WEAPON_GRENADE |
WEAPON_STICKYBOMB | WEAPON_STICKYBOMB |
WEAPON_SMOKEGRENADE | WEAPON_SMOKEGRENADE |
WEAPON_BZGAS | WEAPON_BZGAS |
WEAPON_MOLOTOV | WEAPON_MOLOTOV |
WEAPON_FIREEXTINGUISHER | WEAPON_FIREEXTINGUISHER |
WEAPON_PETROLCAN | WEAPON_PETROLCAN |
WEAPON_DIGISCANNER | WEAPON_DIGISCANNER |
WEAPON_BRIEFCASE | WEAPON_BRIEFCASE |
WEAPON_BRIEFCASE_02 | WEAPON_BRIEFCASE_02 |
WEAPON_BALL | WEAPON_BALL |
WEAPON_FLARE | WEAPON_FLARE |
WEAPON_VEHICLE_ROCKET | WEAPON_VEHICLE_ROCKET |
WEAPON_BARBED_WIRE | WEAPON_BARBED_WIRE |
WEAPON_DROWNING | WEAPON_DROWNING |
WEAPON_DROWNING_IN_VEHICLE | WEAPON_DROWNING_IN_VEHICLE |
WEAPON_BLEEDING | WEAPON_BLEEDING |
WEAPON_ELECTRIC_FENCE | WEAPON_ELECTRIC_FENCE |
WEAPON_EXPLOSION | WEAPON_EXPLOSION |
WEAPON_FALL | WEAPON_FALL |
WEAPON_EXHAUSTION | WEAPON_EXHAUSTION |
WEAPON_HIT_BY_WATER_CANNON | WEAPON_HIT_BY_WATER_CANNON |
WEAPON_RAMMED_BY_CAR | WEAPON_RAMMED_BY_CAR |
WEAPON_RUN_OVER_BY_CAR | WEAPON_RUN_OVER_BY_CAR |
WEAPON_HELI_CRASH | WEAPON_HELI_CRASH |
WEAPON_FIRE | WEAPON_FIRE |
WEAPON_ANIMAL_RETRIEVER | WEAPON_ANIMAL_RETRIEVER |
WEAPON_SMALL_DOG | WEAPON_SMALL_DOG |
WEAPON_TIGER_SHARK | WEAPON_TIGER_SHARK |
WEAPON_HAMMERHEAD_SHARK | WEAPON_HAMMERHEAD_SHARK |
WEAPON_KILLER_WHALE | WEAPON_KILLER_WHALE |
WEAPON_BOAR | WEAPON_BOAR |
WEAPON_PIG | WEAPON_PIG |
WEAPON_COYOTE | WEAPON_COYOTE |
WEAPON_DEER | WEAPON_DEER |
WEAPON_HEN | WEAPON_HEN |
WEAPON_RABBIT | WEAPON_RABBIT |
WEAPON_CAT | WEAPON_CAT |
WEAPON_COW | WEAPON_COW |
WEAPON_BIRD_CRAP | WEAPON_BIRD_CRAP |
The component name can be one of the following:
Name | Description |
---|---|
COMPONENT_AT_RAILCOVER_01 | COMPONENT_AT_RAILCOVER_01 |
COMPONENT_AT_AR_AFGRIP | COMPONENT_AT_AR_AFGRIP |
COMPONENT_AT_PI_FLSH | COMPONENT_AT_PI_FLSH |
COMPONENT_AT_AR_FLSH | COMPONENT_AT_AR_FLSH |
COMPONENT_AT_SCOPE_MACRO | COMPONENT_AT_SCOPE_MACRO |
COMPONENT_AT_SCOPE_SMALL | COMPONENT_AT_SCOPE_SMALL |
COMPONENT_AT_SCOPE_MEDIUM | COMPONENT_AT_SCOPE_MEDIUM |
COMPONENT_AT_SCOPE_LARGE | COMPONENT_AT_SCOPE_LARGE |
COMPONENT_AT_SCOPE_MAX | COMPONENT_AT_SCOPE_MAX |
COMPONENT_AT_PI_SUPP | COMPONENT_AT_PI_SUPP |
COMPONENT_AT_AR_SUPP | COMPONENT_AT_AR_SUPP |
COMPONENT_AT_AR_SUPP_02 | COMPONENT_AT_AR_SUPP_02 |
COMPONENT_AT_SR_SUPP | COMPONENT_AT_SR_SUPP |
COMPONENT_PISTOL_CLIP_01 | COMPONENT_PISTOL_CLIP_01 |
COMPONENT_PISTOL_CLIP_02 | COMPONENT_PISTOL_CLIP_02 |
COMPONENT_COMBATPISTOL_CLIP_01 | COMPONENT_COMBATPISTOL_CLIP_01 |
COMPONENT_COMBATPISTOL_CLIP_02 | COMPONENT_COMBATPISTOL_CLIP_02 |
COMPONENT_APPISTOL_CLIP_01 | COMPONENT_APPISTOL_CLIP_01 |
COMPONENT_APPISTOL_CLIP_02 | COMPONENT_APPISTOL_CLIP_02 |
COMPONENT_MICROSMG_CLIP_01 | COMPONENT_MICROSMG_CLIP_01 |
COMPONENT_MICROSMG_CLIP_02 | COMPONENT_MICROSMG_CLIP_02 |
COMPONENT_SMG_CLIP_01 | COMPONENT_SMG_CLIP_01 |
COMPONENT_SMG_CLIP_02 | COMPONENT_SMG_CLIP_02 |
COMPONENT_ASSAULTRIFLE_CLIP_01 | COMPONENT_ASSAULTRIFLE_CLIP_01 |
COMPONENT_ASSAULTRIFLE_CLIP_02 | COMPONENT_ASSAULTRIFLE_CLIP_02 |
COMPONENT_CARBINERIFLE_CLIP_01 | COMPONENT_CARBINERIFLE_CLIP_01 |
COMPONENT_CARBINERIFLE_CLIP_02 | COMPONENT_CARBINERIFLE_CLIP_02 |
COMPONENT_ADVANCEDRIFLE_CLIP_01 | COMPONENT_ADVANCEDRIFLE_CLIP_01 |
COMPONENT_ADVANCEDRIFLE_CLIP_02 | COMPONENT_ADVANCEDRIFLE_CLIP_02 |
COMPONENT_MG_CLIP_01 | COMPONENT_MG_CLIP_01 |
COMPONENT_MG_CLIP_02 | COMPONENT_MG_CLIP_02 |
COMPONENT_COMBATMG_CLIP_01 | COMPONENT_COMBATMG_CLIP_01 |
COMPONENT_COMBATMG_CLIP_02 | COMPONENT_COMBATMG_CLIP_02 |
COMPONENT_PUMPSHOTGUN_CLIP_01 | COMPONENT_PUMPSHOTGUN_CLIP_01 |
COMPONENT_SAWNOFFSHOTGUN_CLIP_01 | COMPONENT_SAWNOFFSHOTGUN_CLIP_01 |
COMPONENT_ASSAULTSHOTGUN_CLIP_01 | COMPONENT_ASSAULTSHOTGUN_CLIP_01 |
COMPONENT_ASSAULTSHOTGUN_CLIP_02 | COMPONENT_ASSAULTSHOTGUN_CLIP_02 |
COMPONENT_SNIPERRIFLE_CLIP_01 | COMPONENT_SNIPERRIFLE_CLIP_01 |
COMPONENT_HEAVYSNIPER_CLIP_01 | COMPONENT_HEAVYSNIPER_CLIP_01 |
COMPONENT_MINIGUN_CLIP_01 | COMPONENT_MINIGUN_CLIP_01 |
COMPONENT_RPG_CLIP_01 | COMPONENT_RPG_CLIP_01 |
COMPONENT_GRENADELAUNCHER_CLIP_01 | COMPONENT_GRENADELAUNCHER_CLIP_01 |
COMPONENT_PISTOL50_CLIP_01 | COMPONENT_PISTOL50_CLIP_01 |
COMPONENT_PISTOL50_CLIP_02 | COMPONENT_PISTOL50_CLIP_02 |
COMPONENT_ASSAULTSMG_CLIP_01 | COMPONENT_ASSAULTSMG_CLIP_01 |
COMPONENT_ASSAULTSMG_CLIP_02 | COMPONENT_ASSAULTSMG_CLIP_02 |
COMPONENT_BULLPUPSHOTGUN_CLIP_01 | COMPONENT_BULLPUPSHOTGUN_CLIP_01 |
Namespace: Rage
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax
Parameters
- weaponAsset
- Type: RageWeaponAsset
The weapon to add the component to. - componentName
- Type: SystemString
The name of the component.
See Also