This commit is contained in:
2021-06-27 20:27:03 -05:00
commit cbd4520e12
42 changed files with 1836 additions and 0 deletions

83
RAGE/Ped.d.ts vendored Normal file
View File

@@ -0,0 +1,83 @@
/**
* Ped Functions
* @public
* @noSelf
*/
declare namespace ped {
function is_ped_in_any_vehicle(ped: Ped): boolean;
function set_group_formation(group: Ped, formation: int): boolean;
function set_ped_as_group_member(ped: Ped, groupId: int): boolean;
function get_ped_group(ped: Ped): Group;
function get_group_size(group: int): int;
function get_ped_health(ped: Ped): float;
function set_ped_health(ped: Ped, value: float): boolean;
function is_ped_ragdoll(ped: Ped): boolean;
function is_ped_a_player(ped: Ped): boolean;
function get_current_ped_weapon(ped: Ped): Hash;
function set_ped_into_vehicle(ped: Ped, vehicle: Vehicle, seat: int): boolean;
function get_ped_drawable_variation(ped: Ped, group: int): int;
function get_ped_texture_variation(ped: Ped, group: int): int;
function get_ped_prop_index(ped: Ped, group: int): int;
function get_ped_prop_texture_index(ped: Ped, group: int): int;
function set_ped_component_variation(ped: Ped, component: int, drawable: int, texture: int, pallette: int): boolean;
function set_ped_prop_index(ped: Ped, component: int, drawable: int, texture: int, unk: int): boolean;
function set_ped_can_switch_weapons(ped: Ped, toggle: boolean): void;
function is_ped_shooting(ped: Ped): boolean;
function get_ped_bone_index(ped: Ped, bone: int): int;
function get_ped_bone_coords(ped: Ped, boneId: Hash, offset: v3): [boolean, v3];
function get_ped_relationship_group_hash(ped: Ped): Hash;
function set_ped_relationship_group_hash(ped: Ped, hash: Hash): void;
function get_vehicle_ped_is_using(ped: Ped): Vehicle;
function clear_all_ped_props(ped: Ped): void;
function clear_ped_tasks_immediately(ped: Ped): int;
function clear_ped_blood_damage(ped: Ped): void;
function is_ped_in_vehicle(ped: Ped, vehicle: Vehicle): boolean;
function is_ped_using_any_scenario(ped: Ped): boolean;
function set_ped_to_ragdoll(ped: Ped, time1: int, time2: int, type: int): boolean;
function set_ped_can_ragdoll(ped: Ped, toggle: boolean): boolean;
function can_ped_ragdoll(ped: Ped): boolean;
function get_ped_last_weapon_impact(ped: Ped): [boolean, v3];
function set_ped_combat_ability(ped: Ped, ability: BYTE): boolean;
function get_ped_max_health(entity: Entity): float;
function set_ped_max_health(entity: Entity, health: float): boolean;
function resurrect_ped(ped: Ped): boolean;
function set_ped_combat_movement(ped: Ped, type: int): void;
function set_ped_combat_range(ped: Ped, type: int): void;
function set_ped_combat_attributes(ped: Ped, attr: int, toggle: boolean): void;
function set_ped_accuracy(ped: Ped, accuracy: int): void;
function create_ped(type: int, model: Hash, pos: v3, heading: float, isNetworked: boolean, unk1: boolean): Ped;
function get_number_of_ped_drawable_variations(ped: Ped, comp: int): int;
function get_number_of_ped_texture_variations(ped: Ped, comp: int, draw: int): int;
function get_number_of_ped_prop_drawable_variations(ped: Ped, groupId: int): int;
function get_number_of_ped_prop_texture_variations(ped: Ped, groupId: int, drawId: int): int;
function set_ped_random_component_variation(ped: Ped): void;
function set_ped_default_component_variation(ped: Ped): void;
function set_ped_movement_clipset(ped: Ped, szClipset: string): void;
function reset_ped_movement_clipset(ped: Ped, unk0: boolean): void;
function clone_ped(ped: Ped): Ped;
function set_ped_config_flag(ped: Ped, flag: int, value: uint8_t): boolean;
function set_ped_ragdoll_blocking_flags(ped: Ped, flags: int): boolean;
function reset_ped_ragdoll_blocking_flags(ped: Ped, flags: int): boolean;
function set_ped_density_multiplier_this_frame(mult: float): void;
function set_scenario_ped_density_multiplier_this_frame(m1: float, m2: float): void;
function get_all_peds(): vector<Ped>;
function create_group(): Group;
function remove_group(group: Group): void;
function set_ped_as_group_leader(ped: Ped, group: Group): void;
function remove_ped_from_group(ped: Ped): void;
function is_ped_group_member(ped: Ped, group: Group): boolean;
function set_group_formation_spacing(group: Group, a2: float, a3: float, a4: float): boolean;
function reset_group_formation_default_spacing(group: Group): boolean;
function set_ped_never_leaves_group(ped: Ped, toggle: boolean): void;
function does_group_exist(group: Group): boolean;
function is_ped_in_group(ped: Ped): boolean;
function set_create_random_cops(t: boolean): void;
function can_create_random_cops(): boolean;
function is_ped_swimming(ped: Ped): boolean;
function is_ped_swimming_underwater(ped: Ped): boolean;
function clear_relationship_between_groups(group1: Hash, group2: Hash): void;
function set_relationship_between_groups(relation: int, group1: Hash, group2: Hash): void;
}