natives.SET_CHAR_SCALE

Revision as of 17:12, 11 June 2026 by Roxas (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.SET_CHAR_SCALE |parameters = int ped, float scale |parameter1 = int ped The character (ped) to scale |parameter2 = float scale Scale factor (1.0 = normal, 0.5 = half size, 2.0 = double) |usage = Scale a character's model in Vice City. Useful for visual effects, minified characters, or oversized enemies. |notes = Affects the visual size of the ped model. Does not affect collision or physics. Valu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function Client Only icon-vc.png 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.