native
attribute
Methods
set_attribute_base_rank
attributeIndex:
enum ePedAttribute
{
PA_HEALTH,
PA_STAMINA,
PA_SPECIALABILITY,
PA_COURAGE,
PA_AGILITY,
PA_SPEED,
PA_ACCELERATION,
PA_BONDING,
SA_HUNGER,
SA_FATIGUED,
SA_INEBRIATED,
SA_POISONED,
SA_BODYHEAT,
SA_BODYWEIGHT,
SA_OVERFED,
SA_SICKNESS,
SA_DIRTINESS,
SA_DIRTINESSHAT,
MTR_STRENGTH,
MTR_GRIT,
MTR_INSTINCT,
PA_UNRULINESS,
SA_DIRTINESSSKIN
};
function native.attribute.set_attribute_base_rank(ped: int, attribute_index: int, new_value: int): void
get_attribute_rank
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.get_attribute_rank(ped: int, attribute_index: int): int
get_attribute_base_rank
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.get_attribute_base_rank(ped: int, attribute_index: int): int
get_attribute_bonus_rank
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.get_attribute_bonus_rank(ped: int, core_index: int): int
get_max_attribute_rank
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.get_max_attribute_rank(ped: int, attribute_index: int): int
set_attribute_bonus_rank
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.set_attribute_bonus_rank(ped: int, attribute_index: int, new_value: int): void
get_default_attribute_rank
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.get_default_attribute_rank(ped: int, attribute_index: int): int
get_default_max_attribute_rank
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.get_default_max_attribute_rank(ped: int, attribute_index: int): int
add_attribute_points
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.add_attribute_points(ped: int, attribute_index: int, p2: int): void
set_attribute_points
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.set_attribute_points(ped: int, attribute_index: int, p2: int): void
get_attribute_points
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.get_attribute_points(ped: int, attribute_index: int): int
get_max_attribute_points
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.get_max_attribute_points(ped: int, attribute_index: int): int
_set_attribute_core_value
coreIndex:
enum eAttributeCore
{
ATTRIBUTE_CORE_HEALTH,
ATTRIBUTE_CORE_STAMINA,
ATTRIBUTE_CORE_DEADEYE
};
function native.attribute._set_attribute_core_value(ped: int, core_index: int, value: int): void
_get_attribute_core_value
Gets the ped's core value on a scale of 0 to 100.
coreIndex: see _SET_ATTRIBUTE_CORE_VALUE
function native.attribute._get_attribute_core_value(ped: int, core_index: int): int
get_default_attribute_points_needed_for_rank
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.get_default_attribute_points_needed_for_rank(model_hash: int, attribute_index: int, rank: int): int
enable_attribute_overpower
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
Old name: _SET_ATTRIBUTE_OVERPOWER_VALUE
function native.attribute.enable_attribute_overpower(ped: int, attribute_index: int, value: float, make_sound: bool): void
_enable_attribute_core_overpower
coreIndex: see _SET_ATTRIBUTE_CORE_VALUE
Previously incorrectly named ENABLE_ATTRIBUTE_OVERPOWER
function native.attribute._enable_attribute_core_overpower(ped: int, core_index: int, value: float, make_sound: bool): void
disable_attribute_overpower
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute.disable_attribute_overpower(ped: int, attribute_index: int): void
_is_attribute_overpowered
attributeIndex: see SET_ATTRIBUTE_BASE_RANK
function native.attribute._is_attribute_overpowered(ped: int, attribute_index: int): bool
_is_attribute_core_overpowered
function native.attribute._is_attribute_core_overpowered(ped: int, core_index: int): bool
_get_attribute_overpower_seconds_left
function native.attribute._get_attribute_overpower_seconds_left(ped: int, attribute_index: int): float
_get_attribute_core_overpower_seconds_left
function native.attribute._get_attribute_core_overpower_seconds_left(ped: int, core_index: int): float
_start_item_preview
Params: p1 is related to satchel_category
function native.attribute._start_item_preview(p0: int, p1: int): void
stop_item_preview
function native.attribute.stop_item_preview(): void
_set_status_effect_core_icon
Displays status effects on core icons (includes warnings).
enum eUiRpgStatusEffect { STATUS_NONE, STATUS_COLD, STATUS_HOT, STATUS_OVERFED, STATUS_DIRTY, STATUS_SNAKE_VENOM, STATUS_ARROW_WOUNDED, STATUS_ARROW_DRAINED, STATUS_ARROW_DISORIENTED, STATUS_ARROW_TRACKED, STATUS_ARROW_CONFUSION, STATUS_UNDERWEIGHT, STATUS_OVERWEIGHT, STATUS_SICK_1, STATUS_SICK_2, STATUS_PREDATOR_INVULNERABLE };
function native.attribute._set_status_effect_core_icon(status_effect_type: int): void
_set_status_effect_periodic_icon
Starts core periodic icon.
statusEffectType: see 0xA4D3A1C008F250DF
function native.attribute._set_status_effect_periodic_icon(status_effect_type: int): void
_stop_status_effect_periodic_icon
Stops periodic icon.
statusEffectType: see 0xA4D3A1C008F250DF
function native.attribute._stop_status_effect_periodic_icon(status_effect_type: int): void