weapon
222 native definitions. Call through
natives.weapon or natives.WEAPON.222 definitions
| Function | Returns | Parameters | Native hash |
|---|---|---|---|
_0x000FA7A4A8443AF7 | void | p0: Any | |
_0x07E1C35F0078C3F9 | Any | p0: Any, p1: Any | |
_0x0DE0944ECCB3DF5D | BOOL | p0: Any | |
_0x14FF0C2545527F9B | void | horse: Ped, weaponHash: Hash, ped: Ped | |
_0x16D9841A85FA627E | void | ped: Ped, toggle: BOOL | |
_0x183CE355115B6E75 | void | p0: Any, p1: Any | |
_0x2387D6E9C6B478AA | BOOL | ped: Ped | |
_0x23BF601A42F329A0 | Any | p0: Any | |
_0x2EBF70E1D8C06683 | void | p0: Any, p1: Any | |
_0x3799EFCC3C8CD5E1 | Any | p0: Any | |
_0x404514D231DB27A0 | void | p0: Any, p1: Any | |
_0x431240A58484D5D0 | void | ped: Ped, toggle: BOOL | |
_0x44C8F4908F1B2622 | BOOL | ped: Ped, ammoHash: Hash | |
_0x457B16951AD77C1B | void | p0: Any | |
_0x45E57FDD531C9477 | void | ped: Ped, toggle: BOOL | |
_0x46D42883E873C1D7 | Any | ped: Ped | |
_0x4820A6939D7CEF28 | void | p0: Any, p1: Any | |
_0x4823F13A21F51964 | Any | p0: Any, p1: Any | |
_0x486C96A0DCD2BC92 | Any | p0: Any, p1: Any | |
_0x495A04CAEC263AF8 | Any | p0: Any, p1: Any | |
_0x58425FCA3D3A2D15 | Any | p0: Any | |
_0x5A695BD328586B44 | Any | p0: Any, p1: Any | |
_0x5B235F24472F2C3B | Any | p0: Any, p1: Any | |
_0x63B83A526329AFBC | void | p0: Any | |
_0x641351E9AD103890 | void | p0: Any, p1: Any | |
_0x65DC4AC5B96614CB | int | weaponHash: Hash | |
_0x74C2365FDD1BB48F | void | p0: Any, p1: Any | |
_0x74C8000FDD1BB111 | Any | p0: Any, p1: Any | |
_0x74C8000FDD1BB222 | Any | p0: Any, p1: Any | |
_0x74C9080FDD1BB48E | void | p0: Any, p1: Any | |
_0x74C9080FDD1BB48F | void | p0: Any, p1: Any | |
_0x74C90AAACC1DD48F | void | p0: Any | |
_0x80BB243789008A82 | Any | p0: Any, p1: Any | |
_0x8A779706DA5CA3DD | void | p0: Any, p1: Any, p2: Any | |
_0x9409C62504A8F9E9 | void | p0: Any, p1: Any | |
_0x95CA12E2C68043E5 | Any | p0: Any, p1: Any | |
_0x9CCA3131E6B53C68 | Any | p0: Any, p1: Any, p2: Any | |
_0x9EEFD670F10656D7 | Hash | weaponCollection: Hash, weaponGroup: Hash | |
_0x9F0E1892C7F228A8 | Any | p0: Any | |
_0xA2091482ED42EF85 | Any | p0: Any, p1: Any | |
_0xA3716A77DCF17424 | void | p0: Any, p1: Any, p2: Any | |
_0xA769D753922B031B | void | p0: Any, p1: Any, p2: Any | |
_0xABC18A28BAD4B46F | Any | p0: Any, p1: Any | |
_0xAFFD0CCF31F469B8 | Any | p0: Any | |
_0xB0FB9B196A3D13F0 | void | p0: Any, p1: Any, p2: Any | |
_0xB832F1A686B9B810 | void | p0: Any, p1: Any, p2: Any | |
_0xBC9444F2FF94A9C0 | Any | p0: Any | |
_0xBFCA7AFABF9D7967 | Any | p0: Any, p1: Any | |
_0xC5899C4CD2E2495D | void | p0: Any | |
_0xCD356B42C57BFE01 | BOOL | ped: Ped, p1: Any* | |
_0xD2209866B0CB72EA | Any | p0: Any, p1: Any | |
_0xD4C6E24D955FF061 | void | p0: Any | |
_0xD53846B9C931C181 | void | p0: Any, p1: Any, p2: Any | |
_0xD63B4BA3A02A99E0 | void | p0: Any, p1: Any | |
_0xE9B3FEC825668291 | void | p0: Any, p1: Any, p2: Any | |
_0xEA522F991E120D45 | Any | p0: Any | |
_0xEC97101A8F311282 | Any | p0: Any | |
_0xECBB26529A737EF6 | void | p0: Any | |
_0xF08D8FEB455F2C8C | void | ped: Ped, toggle: BOOL | |
_0xF252A85B8F3F8C58 | BOOL | weaponCollection: Hash, dualwieldVariant: Hash | |
_0xF2F585411E748B9C | Any | p0: Any, p1: Any | |
_0xF8204EF17410BF43 | Hash | weaponGroupHash: Hash, p1: float, p2: float, p3: Any | |
_add_ammo_to_ped | void | ped: Ped, weaponHash: Hash, amount: int, addReason: Hash | |
_add_ammo_to_ped_by_type | void | ped: Ped, ammoType: Hash, amount: int, addReason: Hash | |
_clear_ped_last_weapon_damage | void | ped: Ped | |
_create_weapon_object | Object | weaponHash: Hash, ammoCount: int, x: float, y: float, z: float, showWorldModel: BOOL, scale: float | |
_disable_ammo_type_for_ped | void | ped: Ped, ammoHash: Hash | |
_disable_ammo_type_for_ped_weapon | void | ped: Ped, weaponHash: Hash, ammoHash: Hash | |
_enable_ammo_type_for_ped | void | ped: Ped, weaponHash: Hash | |
_enable_ammo_type_for_ped_weapon | void | ped: Ped, weaponHash: Hash, ammoHash: Hash | |
_enable_weapon_restore | BOOL | ped: Ped | |
_get_ammo_in_clip_by_inventory_uid | BOOL | ped: Ped, ammo: int*, inventoryUid: Any* | |
_get_ammo_type_for_weapon | Hash | weaponHash: Hash | |
_get_best_ped_weapon_in_group | Hash | ped: Ped, weaponGroup: Hash, p2: BOOL, p3: BOOL | |
_get_best_ped_weapon_in_inventory | Any | ped: Ped, p1: Any, guidPrimary: Any* | |
_get_can_twirl_weapon | BOOL | weaponHash: Hash | |
_get_current_ammo_type_from_guid | Hash | ped: Ped, weaponGuid: Any* | |
_get_current_ped_weapon_ammo_type | Hash | ped: Ped, weaponObject: Object | |
_get_default_ped_weapon_collection | Hash | pedModel: Hash | |
_get_default_unarmed_weapon_hash | Hash | ped: Ped | |
_get_max_lockon_distance_of_current_ped_weapon | float | ped: Ped | |
_get_ped_current_held_weapon | Hash | ped: Ped | |
_get_ped_gun_spinning_equipped_kit_emote_twirl | Hash | ped: Ped | |
_get_ped_gun_spinning_hash_from_weapon_emote_variation | Hash | ped: Ped, weaponEmoteVariation: int | |
_get_ped_hogtie_weapon | Hash | ped: Ped | |
_get_ped_weapon_in_slot | Hash | ped: Ped, slotHash: Hash | |
_get_ped_weapon_object | Object | ped: Ped, p1: BOOL | |
_get_ped_worst_weapon | Hash | ped: Ped, p1: BOOL, p2: BOOL, p3: BOOL | |
_get_player_ped_quick_swap_weapon_by_guid | void | ped: Ped, guidPrimary: Any*, guidSecondary: Any* | |
_get_weapon_attach_point | int | ped: Ped, attachPoint: int | |
_get_weapon_component_type_model | Hash | componentHash: Hash | |
_get_weapon_damage | float | weaponObject: Object | |
_get_weapon_dirt | float | weaponObject: Object | |
_get_weapon_emote_variation | int | ped: Ped, variation: int | |
_get_weapon_gun_spinning_weapon_emote_trick_type_hash | Hash | emote: Hash, weaponEmoteTrickType: int | |
_get_weapon_name | const char* | weaponHash: Hash | |
_get_weapon_name_2 | const char* | weaponHash: Hash | |
_get_weapon_name_with_permanent_degradation | const char* | weaponHash: Hash, permanentDegradationLevel: float | |
_get_weapon_object_from_ped | Object | ped: Ped, p1: BOOL | |
_get_weapon_scale | float | weaponObject: Object | |
_get_weapon_soot | float | weaponObject: Object | |
_get_weapon_stat_id | Hash | weaponHash: Hash | |
_get_weapon_type_from_ammo_type | Hash | ammoType: Hash | |
_get_weapon_unlock | Hash | weaponHash: Hash | |
_get_weapontype_model | Hash | weaponHash: Hash | |
_get_weapontype_slot | Hash | weaponHash: Hash | |
_give_weapon_collection_to_ped | void | ped: Ped, weaponCollection: Hash | |
_give_weapon_component_to_entity | void | entity: Entity, componentHash: Hash, weaponHash: Hash, p3: BOOL | |
_give_weapon_component_to_weapon_object | void | weaponObject: Object*, ped: Ped, componentHash: Hash, p3: BOOL | |
_has_entity_been_damaged_by_weapon | BOOL | entity: Entity, weaponName: Hash, weaponType: int | |
_has_entity_been_damaged_by_weapon_recently | BOOL | entity: Entity, weaponHash: Hash, ms: int | |
_has_ped_got_weapon_component | BOOL | ped: Ped, componentHash: Hash, weaponHash: Hash | |
_has_weapon_asset_loaded | BOOL | weaponHash: Hash | |
_hide_ped_weapons | void | ped: Ped, p0: int, immediately: BOOL | |
_holster_ped_weapons | void | ped: Ped, p1: BOOL, p2: BOOL, p3: BOOL, immediately: BOOL | |
_is_ammo_silent | BOOL | ammoHash: Hash | |
_is_ammo_silent_2 | BOOL | ammoHash: Hash | |
_is_ammo_type_valid_for_weapon | BOOL | weaponHash: Hash, ammoHash: Hash | |
_is_ammo_valid | BOOL | ammoHash: Hash | |
_is_ped_current_weapon_holstered | BOOL | ped: Ped | |
_is_target_ped_constrained_by_ped_using_bolas | BOOL | ped: Ped, targetPed: Ped | |
_is_weapon_binoculars | BOOL | weaponHash: Hash | |
_is_weapon_kit | BOOL | weaponHash: Hash | |
_is_weapon_kit_2 | BOOL | weaponHash: Hash | |
_is_weapon_knife | BOOL | weaponHash: Hash | |
_is_weapon_lantern | BOOL | weaponHash: Hash | |
_is_weapon_lasso | BOOL | weaponHash: Hash | |
_is_weapon_one_handed | BOOL | weaponHash: Hash | |
_is_weapon_silent | BOOL | weaponHash: Hash | |
_is_weapon_sniper | BOOL | weaponHash: Hash | |
_is_weapon_throwable | BOOL | weaponHash: Hash | |
_is_weapon_torch | BOOL | weaponHash: Hash | |
_is_weapon_two_handed | BOOL | weaponHash: Hash | |
_listen_projectile_hit_events | void | listen: BOOL | |
_make_ped_reload | Any | ped: Ped | |
_refill_ammo_in_clip | Any | ped: Ped, clipInventoryUid: Any*, p2: int | |
_refill_ammo_in_current_ped_weapon | Any | ped: Ped | |
_remove_all_ped_ammo | void | ped: Ped | |
_remove_ammo_from_ped | void | ped: Ped, weaponHash: Hash, amount: int, removeReason: Hash | |
_remove_ammo_from_ped_by_type | void | ped: Ped, ammoHash: Hash, amount: int, removeReason: Hash | |
_remove_weapon_asset | void | weaponHash: Hash | |
_remove_weapon_component_from_ped | void | ped: Ped, componentHash: Hash, weaponHash: Hash | |
_remove_weapon_from_ped_by_guid | void | ped: Ped, weaponGuid: Any*, removeReason: Hash | |
_request_weapon_asset | void | weaponHash: Hash, p1: int, p2: BOOL | |
_send_weapon_to_inventory | void | ped: Ped, weaponHash: Hash | |
_set_active_gun_spinning_equip_kit_emote_twirl | void | ped: Ped, emote: Hash | |
_set_active_gun_spinning_kit_emote_twirl | void | ped: Ped, weaponEmoteTrickType: int, spin: Hash | |
_set_allow_dual_wield | void | ped: Ped, allow: BOOL | |
_set_ammo_in_turret | void | vehicle: Vehicle, turretHash: Hash, ammo: int | |
_set_ammo_type_for_ped_weapon | void | ped: Ped, weaponHash: Hash, ammoHash: Hash | |
_set_ammo_type_for_ped_weapon_inventory | void | ped: Ped, weaponInventoryUid: Any*, ammoHash: Hash | |
_set_force_auto_equip | void | ped: Ped, toggle: BOOL | |
_set_force_current_weapon_into_cocked_state | void | ped: Ped, attachPoint: int | |
_set_gun_spinning_inventory_slot_id_activate | void | ped: Ped, emoteType: int | |
_set_ped_all_weapons_visibility | void | ped: Ped, visible: BOOL | |
_set_ped_infinite_ammo_clip | void | ped: Ped, toggle: BOOL | |
_set_ped_weapon_attach_point_visibility | void | ped: Ped, attachPoint: int, visible: BOOL | |
_set_vehicle_weapon_heading_limits | void | vehicle: Vehicle, p1: int, minHeading: float, maxHeading: float | |
_set_vehicle_weapon_heading_limits_2 | Any | vehicle: Vehicle, p1: int, minHeading: float, maxHeading: float | |
_set_weapon_damage | void | weaponObject: Object, level: float, p2: BOOL | |
_set_weapon_degradation | void | weaponObject: Object, level: float | |
_set_weapon_dirt | void | weaponObject: Object, level: float, p2: BOOL | |
_set_weapon_level_threshold | void | weaponObject: Object, threshold: float | |
_set_weapon_scale | void | weaponObject: Object, scale: float | |
_set_weapon_soot | void | weaponObject: Object, level: float, p2: BOOL | |
get_allow_dual_wield | BOOL | ped: Ped | |
get_ammo_in_clip | BOOL | ped: Ped, ammo: int*, weaponHash: Hash | |
get_ammo_in_ped_weapon | int | ped: Ped, weaponHash: Hash | |
get_best_ped_shortarm_guid | void | ped: Ped, outGUID: Any*, p2: BOOL, p3: BOOL | |
get_best_ped_weapon | Hash | ped: Ped, p1: BOOL, p2: BOOL | |
get_current_ped_vehicle_weapon | BOOL | ped: Ped, weaponHash: Hash* | |
get_current_ped_weapon | BOOL | ped: Ped, weaponHash: Hash*, p2: BOOL, attachPoint: int, p4: BOOL | |
get_current_ped_weapon_entity_index | Entity | ped: Ped, attachPoint: int | |
get_max_ammo | BOOL | ped: Ped, ammo: int*, weaponHash: Hash | |
get_max_ammo_in_clip | int | ped: Ped, weaponHash: Hash, p2: BOOL | |
get_ped_ammo_by_type | int | ped: Ped, ammoType: Hash | |
get_ped_ammo_type_from_weapon | Hash | ped: Ped, weaponHash: Hash | |
get_ped_backup_weapon | Hash | ped: Ped, p1: BOOL | |
get_ped_last_weapon_impact_coord | BOOL | ped: Ped, coords: Vector3* | |
get_ped_weapon_guid_at_attach_point | BOOL | ped: Ped, attachPoint: int, weaponGuid: Any* | |
get_weapon_clip_size | int | weaponHash: Hash | |
get_weapon_degradation | float | weaponObject: Object | |
get_weapon_permanent_degradation | float | weaponObject: Object | |
get_weapontype_group | Hash | weaponHash: Hash | |
give_delayed_weapon_to_ped | void | ped: Ped, weaponHash: Hash, ammoCount: int, p3: BOOL, addReason: Hash | |
give_weapon_to_ped | Hash | ped: Ped, weaponHash: Hash, ammoCount: int, bForceInHand: BOOL, bForceInHolster: BOOL, attachPoint: int, bAllowMultipleCopies: BOOL, p7: float, p8: float, addReason: Hash, bIgnoreUnlocks: BOOL, permanentDegradation: float, p12: BOOL | |
give_weapon_to_ped_with_options | BOOL | ped: Ped, data: Any*, outData: Any* | |
has_ped_got_weapon | BOOL | ped: Ped, weaponHash: Hash, p2: int, p3: BOOL | |
has_weapon_got_weapon_component | BOOL | weapon: Object, addonHash: Hash | |
hide_ped_weapon_for_scripted_cutscene | void | ped: Ped, toggle: BOOL | |
is_ped_armed | BOOL | ped: Ped, flags: int | |
is_ped_carrying_weapon | BOOL | ped: Ped, weaponHash: Hash | |
is_ped_weapon_ready_to_shoot | BOOL | ped: Ped | |
is_weapon_a_gun | BOOL | weaponHash: Hash | |
is_weapon_bow | BOOL | weaponHash: Hash | |
is_weapon_melee_weapon | BOOL | weaponHash: Hash | |
is_weapon_pistol | BOOL | weaponHash: Hash | |
is_weapon_repeater | BOOL | weaponHash: Hash | |
is_weapon_revolver | BOOL | weaponHash: Hash | |
is_weapon_rifle | BOOL | weaponHash: Hash | |
is_weapon_shotgun | BOOL | weaponHash: Hash | |
is_weapon_valid | BOOL | weaponHash: Hash | |
make_ped_drop_weapon | Entity | ped: Ped, p1: BOOL, attachPoint: int, p3: BOOL, p4: BOOL | |
remove_all_ped_weapons | void | ped: Ped, p1: BOOL, p2: BOOL | |
remove_weapon_component_from_weapon_object | void | weaponObject: Object, component: Hash | |
remove_weapon_from_ped | void | ped: Ped, weaponHash: Hash, p2: BOOL, removeReason: Hash | |
set_allow_any_weapon_drop | void | ped: Ped, toggle: BOOL | |
set_ammo_in_clip | BOOL | ped: Ped, weaponHash: Hash, ammo: int | |
set_current_ped_vehicle_weapon | BOOL | ped: Ped, weaponHash: Hash | |
set_current_ped_weapon | void | ped: Ped, weaponHash: Hash, equipNow: BOOL, attachPoint: int, p4: BOOL, p5: BOOL | |
set_current_ped_weapon_by_guid | void | ped: Ped, weaponUid: Any*, p2: BOOL, attachPoint: int, p4: BOOL, p5: BOOL | |
set_instantly_equip_weapon_pickups | void | ped: Ped, toggle: BOOL | |
set_ped_ammo | void | ped: Ped, weaponHash: Hash, ammo: int | |
set_ped_ammo_by_type | void | ped: Ped, ammoType: Hash, ammo: int | |
set_ped_ammo_to_drop | void | ped: Ped, p1: int, p2: int | |
set_ped_current_weapon_visible | void | ped: Ped, visible: BOOL, deselectWeapon: BOOL, p3: BOOL, p4: BOOL | |
set_ped_drops_inventory_weapon | void | ped: Ped, weaponHash: Hash, xOffset: float, yOffset: float, zOffset: float, ammoCount: int | |
set_ped_drops_weapons_when_dead | void | ped: Ped, toggle: BOOL | |
set_ped_infinite_ammo | void | ped: Ped, toggle: BOOL, weaponHash: Hash | |
set_player_ped_quick_swap_weapon_by_guid | void | ped: Ped, guidPrimary: Any*, guidSecondary: Any* | |
set_vehicle_weapon_heading | void | vehicle: Vehicle, seatIndex: int, heading: float, p3: BOOL | |
should_weapon_be_discarded_when_swapped | BOOL | weaponHash: Hash |
Generated declarations; individual native behaviour may be undocumented. See argument and result mapping before calling a native.