TGIANN
July 15, 2025, 1:39pm
1
Adjust your players’ height and weight dynamically using the native SetEntityMatrix
.
Features
Height & Weight Adjustment
Uses SetEntityMatrix
to change a ped’s height and width.
Admin‑Only Commands by Default
All commands are restricted to admins out of the box (can be enabled for everyone via config).
Full Sync
Changes are synchronized across all connected players.
High Performance
Optimized for minimal impact on client tick rate.
Known Issues
Because this relies on the native SetEntityMatrix
, you may encounter:
Unchanged Hitbox
The character’s collision bounds remain at the original size.
Animation Glitches
During certain animations the ped may briefly revert to its default size.
In‑Vehicle Reversion
While inside a vehicle, the character may snap back to its original dimensions.
Weight Scaling Limitations
Increasing the weight scale can introduce more severe visual glitches.
Requirements
Installation
Download the script from the Releases section.
Extract the downloaded files to your FiveM server’s resource directory.
Add ensure tgiann-ped-scale
to your server.cfg file.
Restart your FiveM server.
Code is accessible
Yes
Subscription-based
No
Lines (approximately)
300+
Requirements
ox_lib
Support
No
7 Likes
is there a way to connect this to the already existing height set in the Tgiann character creation menu?
1 Like
TGIANN
July 15, 2025, 5:27pm
4
Because it’s not a system that works perfect. it doesn’t make sense to make it available to all players
1 Like
cozyxo
July 16, 2025, 6:01am
5
this would be cool to have as an option tho for those who do want it especially for servers that rely on nothing but roleplay such as college rp etc where its all about realism and barley anything else
3 Likes
Is this server sided? Would other people be able to see the changes made to character
TGIANN
July 16, 2025, 11:05am
7
yep, sync with all players
2 Likes
K_Ray
July 17, 2025, 9:19am
8
hey tested this on a lc map players bob up and down any idea why makes the players look like we are standing on an invisible box or does a flicker
TGIANN
July 17, 2025, 9:58am
9
This issue is caused by the player z calculation we perform when modifying the player’s matrix. If you can implement a system that computes it more accurately, please submit a pull request.
local function changeEntitySize(ped, heightScale, widthScale)
local forward, right, upVector, position = GetEntityMatrix(ped)
local adjustedWidthScale = (widthScale == 1.0) and heightScale or (heightScale * widthScale + 1)
local forwardNorm = norm(forward) * adjustedWidthScale
local rightNorm = norm(right) * adjustedWidthScale
local upNorm = norm(upVector) * heightScale
local zOffset = (1.0 - heightScale) * 0.5
local adjustedZ = position.z - zOffset
if GetEntitySpeed(ped) > 0 then
adjustedZ = adjustedZ - zOffset
else
adjustedZ = adjustedZ + zOffset
end
SetEntityMatrix(ped,
This file has been truncated. show original