natives.SET_CHAR_SCALE
Jump to navigation
Jump to search
Function Client Only ![]()
Online and Offline
Available since Client 1.0.0
void natives.SET_CHAR_SCALE(int ped, float scale)
The natives.SET_CHAR_SCALE function is used to Scale a character's model in Vice City. Useful for visual effects, minified characters, or oversized enemies.
Parameters
| 1) | int | ped | The character (ped) to scale. |
| 2) | float | scale | Scale factor (1.0 = normal, 0.5 = half size, 2.0 = double). |
Return
| void | This function doesn't return a value. |
Notes
- Affects the visual size of the ped model. Does not affect collision or physics. Values below 0.1 or above 10 may cause visual glitches.
Examples
Example 1 - JavaScript:
addCommandHandler("scale", function(cmd, args) {
let s = 1.0;
if (args && args.length > 0) {
let n = parseFloat(args[0]);
if (!isNaN(n)) s = n;
}
natives.SET_CHAR_SCALE(localPlayer, s);
message("Player scaled to " + s);
});
Compatibility
There isn't any compatibility information for this function.