CityRP Documentation Repository

cityrp.playermodelSkins

Collects playermodel submaterials and exports their textures as PNGs. Capture must run inside PostRender; jobs are queued and processed one per frame.

Fields

Sharedcityrp.playermodelSkinsSource ☍

PlayermodelSkinMap

7 fields Source ☍
ClientPlayermodelSkinMap.errorSource ☍

True when the texture failed to load.

ClientPlayermodelSkinMap.heightSource ☍

GPU-resident height.

ClientPlayermodelSkinMap.keySource ☍

VMT parameter name, e.g. $basetexture.

ClientPlayermodelSkinMap.mappingHeightSource ☍

VTF mapping height.

ClientPlayermodelSkinMap.mappingWidthSource ☍

VTF mapping width (artist resolution).

ClientPlayermodelSkinMap.textureNameSource ☍

Engine texture path (no materials/ prefix or .vtf).

ClientPlayermodelSkinMap.widthSource ☍

GPU-resident width.

PlayermodelSkinSlot

5 fields Source ☍
ClientPlayermodelSkinSlot.indexSource ☍

0-based submaterial index (Material URL uses this).

ClientPlayermodelSkinSlot.mapsSource ☍

Texture maps found on this material.

ClientPlayermodelSkinSlot.overrideSource ☍

Currently applied SetSubMaterial path, or "".

ClientPlayermodelSkinSlot.pathSource ☍

Original material path from the model.

ClientPlayermodelSkinSlot.shaderSource ☍

Shader name.