Rendering text in Gun Model
Less than 1 minute
Rendering text in Gun Model
- In the gun display file, add the following code:
"text_show": {
// Positioning group name, corresponding to the group name in the model.
"ammo_count_text_pos": {
// Text scaling, the default size is 1
"scale": 0.35,
// Alignment: right, center, left
"align": "right",
// Shadow
"shadow": false,
// Text color
"color": "#53f9af",
// Brightness: 1-15
"light": 15,
// Supports definition in language files and supports PlaceholderAPI style placeholders
// Currently only supports: %player_name% %ammo_count%
"text": "%player_name%"
},
...
}
- Add the corresponding positioning group in the model.