game_rules

get_prop

Returns specified game_rule prop

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

Example

print("Valve DS:",game_rules.get_prop("m_bIsValveDS"))

set_prop

Sets a specified game_rule prop

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

Example

game_rules.set_prop("m_bIsValveDS",1)

Last updated