Scale Entity

scaleEntity.lua

This utility provides a simple interface to scale an entity (ped, object, vehicle) in the world.

scaleEntity(entity, scale)

Scales the specified entity by the given factor.

Parameters:

  • entity (number): Entity handle (ped, object, vehicle).

  • scale (number): Scale factor (e.g., 1.0 is normal size, 0.5 is half size).

Example:

scaleEntity(PlayerPedId(), 0.8) -- Shrinks player slightly

resetScale(entity)

Resets the entity's scale back to its original default.

Example:

resetScale(PlayerPedId()) -- Return to default size

Last updated