CityRP Documentation Repository

Weight

Weight, server side: reading and setting an entity's mass across every physics object. "Original" is each physics object's mass as the entity spawned. It is recorded from Sandbox's player spawn hooks, or the first time the plugin reads an entity that has no record, and it is re-taken once the physics it was taken from has been rebuilt. The model's compiled masses are the fallback when no usable record can be taken. Setting a total spreads it across the parts in proportion to their originals, or refuses and changes nothing.

WeightRecord

2 fields Source ☍
ServerWeightRecord.massesSource ☍

Their masses in kg when the record was taken.

ServerWeightRecord.physicsSource ☍

The physics objects the masses were taken from, indexed from 1.