π AF PedScale - Advanced Character Height System
[v1.0.0] β’ [VORP Core] β’ [RedM]
AF PedScale is an advanced character height management system designed specifically for RedM VORP servers. It ensures seamless roleplay experiences with real-time synchronization and reliable database persistence.
πΊ Preview Video
π₯ Key Features
π Real-time Synchronization: All players see height changes instantly without refreshing.
πΎ Database Persistence: Heights are saved permanently per character; they remain after restarts.
π― 7 Distinct Presets: Ranges from 0.7 (Very Short) to 1.4 (Giant-like).
π Admin Control: Strictly for admins (requires admin/god permissions).
π§ͺ Test Mode: Built-in commands for development and testing.
π Multi-Language: Ready-to-use support for English and Turkish.
βοΈ Highly Configurable: Easy-to-edit config file with debug options.
π οΈ Installation
- Extract the
af-pedscalefolder to your server's resources directory.- Add the following line to your
server.cfg:ensure af-pedscale- Restart your server.
β Auto-SQL: You do not need to import any SQL files manually. The script automatically creates the necessary database tables upon the first start.
π» Commands
Admin Commands:
/setheight [1-7] [playerID]
Usage: Set a player's height permanently.
Example:
/setheight 6 15(Sets player ID 15 to "Tall")
/removeheight [playerID]
- Usage: Reset a player's height back to normal (1.0).
Test Commands (Only active when Config.TestMode = true):
/testheight [1-7]- Apply height to yourself temporarily (not saved).
/testremoveheight- Reset your temporary height.β οΈ Warning: Always set
Config.TestMode = falsefor your production server to prevent players from changing their own size.Configuration Options
You can easily customize the script via
config.lua:
Debug Mode: Enable for detailed server logs.
Locale:Β You can add via locales folder.
Height Values: Customize the specific float values for the 7 presets.
Scale Speed: (Optional) Adjust movement speed based on character size.
Requirements
Framework: VORP Core (Latest)
Database: oxmysql
Game: RedM
β FAQ
Q: Do heights stay after a server restart?
- A: Yes! All height data is saved to the database and reapplied when the player joins.
Q: Is it optimized?
- A: Yes, the script runs with minimal resource usage (0.00-0.01ms idle).
Q: Do I need to run an SQL file?
- A: No, the table is created automatically.
Q: Will this break if I have multiple characters?
- A: No, height is saved specifically to the Character ID, not the Steam/License ID.
Discord :Β
π Update v1.0.1 - The Persistence & Sync Patch
This update focuses on rock-solid stability, ensuring that character heights remain consistent during gameplay and resolving synchronization edge cases in crowded areas.
π Improvements & Bug Fixes
- Enhanced Persistence: Fixed a common issue where height would reset after player Death, Revive, or Respawn. The script now tracks VORP Core state changes more accurately.
- Seamless Character Switching: Improved compatibility with character selection. Whether you use
/rcor switch characters via the menu, your height is instantly reapplied.- Network Streaming Fix: Resolved a critical bug where players entering/leaving your "streaming range" (ID -1) could cause scale glitches. Synchronizing in crowded areas is now smoother than ever.
- Loading Buffer: Added a smart 2000ms delay to the initialization process. This ensures that character models, textures, and clothing are fully loaded before the scale is applied, preventing "invisible ped" or "stretched clothes" issues.
β¨ New Features
- New Command:
/rcheight* Acting as a manual failsafe, this command allows players to re-sync their saved height from the database without needing to relog.
- Note: This can be enabled or renamed via
Config.ReloadHeightCommand.βοΈ Config Changes
- Production Optimized:
Config.TestModeis now disabled by default for instant drag-and-drop deployment.- Resource Optimization: Internal loops have been refined for even lower CPU usage during network sync.
How to Update?
- Download the latest version from your Tebex / Keymaster account.
- Replace your existing
af-pedscalefolder with the new one.- Check your
config.luaif you wish to enable the new/rcheightcommand.- Restart your server. (No SQL changes required!)