跳转至

attribute


set_attribute_base_rank

void native.attribute.set_attribute_base_rank(int ped, int attribute_index, int new_value)

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
};

get_attribute_rank

int native.attribute.get_attribute_rank(int ped, int attribute_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

get_attribute_base_rank

int native.attribute.get_attribute_base_rank(int ped, int attribute_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

get_attribute_bonus_rank

int native.attribute.get_attribute_bonus_rank(int ped, int core_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

get_max_attribute_rank

int native.attribute.get_max_attribute_rank(int ped, int attribute_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

set_attribute_bonus_rank

void native.attribute.set_attribute_bonus_rank(int ped, int attribute_index, int new_value)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

get_default_attribute_rank

int native.attribute.get_default_attribute_rank(int ped, int attribute_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

get_default_max_attribute_rank

int native.attribute.get_default_max_attribute_rank(int ped, int attribute_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

add_attribute_points

void native.attribute.add_attribute_points(int ped, int attribute_index, int p2)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

set_attribute_points

void native.attribute.set_attribute_points(int ped, int attribute_index, int p2)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

get_attribute_points

int native.attribute.get_attribute_points(int ped, int attribute_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

get_max_attribute_points

int native.attribute.get_max_attribute_points(int ped, int attribute_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

_set_attribute_core_value

void native.attribute._set_attribute_core_value(int ped, int core_index, int value)

coreIndex:
enum eAttributeCore
{
    ATTRIBUTE_CORE_HEALTH,
    ATTRIBUTE_CORE_STAMINA,
    ATTRIBUTE_CORE_DEADEYE
};

_get_attribute_core_value

int native.attribute._get_attribute_core_value(int ped, int core_index)

Gets the ped's core value on a scale of 0 to 100.
coreIndex: see _SET_ATTRIBUTE_CORE_VALUE

get_default_attribute_points_needed_for_rank

int native.attribute.get_default_attribute_points_needed_for_rank(int model_hash, int attribute_index, int rank)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

enable_attribute_overpower

void native.attribute.enable_attribute_overpower(int ped, int attribute_index, float value, bool make_sound)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

Old name: _SET_ATTRIBUTE_OVERPOWER_VALUE

_enable_attribute_core_overpower

void native.attribute._enable_attribute_core_overpower(int ped, int core_index, float value, bool make_sound)

coreIndex: see _SET_ATTRIBUTE_CORE_VALUE

Previously incorrectly named ENABLE_ATTRIBUTE_OVERPOWER

disable_attribute_overpower

void native.attribute.disable_attribute_overpower(int ped, int attribute_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

_is_attribute_overpowered

bool native.attribute._is_attribute_overpowered(int ped, int attribute_index)

attributeIndex: see SET_ATTRIBUTE_BASE_RANK

_is_attribute_core_overpowered

bool native.attribute._is_attribute_core_overpowered(int ped, int core_index)


_get_attribute_overpower_seconds_left

float native.attribute._get_attribute_overpower_seconds_left(int ped, int attribute_index)


_get_attribute_core_overpower_seconds_left

float native.attribute._get_attribute_core_overpower_seconds_left(int ped, int core_index)


_start_item_preview

void native.attribute._start_item_preview(int p0, int p1)

Params: p1 is related to satchel_category

stop_item_preview

void native.attribute.stop_item_preview()


_set_status_effect_core_icon

void native.attribute._set_status_effect_core_icon(int status_effect_type)

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
};

_set_status_effect_periodic_icon

void native.attribute._set_status_effect_periodic_icon(int status_effect_type)

Starts core periodic icon.
statusEffectType: see 0xA4D3A1C008F250DF

_stop_status_effect_periodic_icon

void native.attribute._stop_status_effect_periodic_icon(int status_effect_type)

Stops periodic icon.
statusEffectType: see 0xA4D3A1C008F250DF