af-pedscale [VORP]

af-pedscale [VORP]
  • af-pedscale [VORP]
  • af-pedscale [VORP]

$20.00

Add to Basket

πŸ“ 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

Watch the Showcase


πŸ”₯ 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

  1. Extract the af-pedscale folder to your server's resources directory.
  2. Add the following line to your server.cfg: ensure af-pedscale
  3. 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 = false for 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 /rc or 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.TestMode is 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?

    1. Download the latest version from your Tebex / Keymaster account.
    2. Replace your existing af-pedscale folder with the new one.
    3. Check your config.lua if you wish to enable the new /rcheight command.
    4. Restart your server. (No SQL changes required!)