player_resource

get_prop

Returns prop from CCSPlayerResource

any get_prop(<string> prop_name, [optional] <int> array_index)
FieldsDescription

prop_name function

CCSPlayerResource prop name

array_index int

[optional] array index to use if the prop is an array

Example

print("damage total", player_resource.get_prop("m_iMatchStats_Damage_Total"))

set_prop

Sets a prop from CCSPlayerResource

void set_prop(<string> prop_name, <any> value, [optional] <int> array_index)
FieldsDescription

prop_name function

CCSPlayerResource prop name

value any

value to set the prop to

array_index any

[optional] array index to use if the prop is an array

Example

player_resource.set_prop("m_iMatchStats_Damage_Total", 400)

Last updated