Skip to content

πŸ“ FX-SCALE ​

Advanced player identity and scale editing system for RedM with NPC shops, command system, and dynamic event-based usage.


πŸ“¦ Installation ​

bash
ensure fx-scale

β€’ Place the script inside your resources folder β€’ Add ensure fx-scale to your server.cfg β€’ Restart your server


βš™οΈ Basic Settings ​

lua
Config.Debug = false
Config.Language = "en"

β€’ Debug β†’ enable/disable debug mode β€’ Language β†’ system language


🌐 Locale System ​

lua
Config.Locale = {
  ["en"] = {
    ["errorFirstname"] = "...",
  }
}

β€’ Multi-language support β€’ Includes EN / TR / DE β€’ Fully customizable messages


🎯 Command System ​

lua
Config.Command = {
  Enable = true,
  CommandName = "editplayer"
}

β€’ Opens edit menu via command β€’ Example β†’ /editplayer


lua
groups = {"admin","mod"}

β€’ Restricts command usage β€’ Leave empty β†’ everyone can use


lua
params = {
  { name = "id", type = "number" }
}

β€’ Allows targeting other players β€’ /editplayer 12


lua
scaleLimit = { min = 0.50, max = 1.35 }

β€’ Defines allowed player scale range β€’ Prevents extreme values


lua
money = {
  changename = { cash = 1 },
  changescale = { cash = 1 }
}

β€’ Defines price for changes β€’ Supports cash and gold


🧍 NPC Shop System ​

lua
Config.Coords = {
  [1] = {
    npcCoord = vector4(...)
  }
}

β€’ Defines NPC shop locations β€’ Player interacts with NPC to open menu


lua
pedCoords = {
  mainPed = vector4(...),
  clonePed = vector4(...)
}

β€’ Main ped β†’ player position β€’ Clone ped β†’ preview model


lua
camera = {
  coords = vector3(...),
  rotation = vector3(...),
  fov = 60.0
}

β€’ Static camera for editing β€’ Focuses on player and clone


🎯 Prompt System ​

lua
Config.Prompts = {
  ["change"] = {
    Label = "EDIT PLAYER"
  }
}

β€’ Interaction prompt for NPC β€’ Hold key to open menu


βš™οΈ Mode Settings ​

lua
Config.UseTarget = false
Config.UseCoords = true

β€’ UseTarget β†’ use target system β€’ UseCoords β†’ use NPC locations


πŸ”„ Dynamic Mode (Command & Event) ​

lua
TriggerEvent("fx-scale:server:forceOpenMenu", source)

β€’ Opens menu without NPC β€’ Works from any script β€’ Uses player current position


β€’ No teleport required β€’ Clone ped spawns next to player β€’ Camera auto-adjusts β€’ Works with admin tools


🧠 Features ​

text
Name Change
Scale Change
NPC System
Command System
Event System

β€’ Change firstname & lastname β€’ Adjust player height (scale) β€’ Supports multiple usage methods


πŸ” Security System ​

text
Server-side validation
Session tracking

β€’ All actions validated server-side β€’ Prevents exploit attempts β€’ Secure session system


🎯 HUD Integration ​

lua
Config.HideHud = function()
Config.ShowHud = function()

β€’ Hides HUD during menu β€’ Compatible with fx-hud


πŸ”” Notification System ​

lua
Notify({
  text = "Success"
})

β€’ Supports VORP / RSG / REDEMRP β€’ Handles server & client notifications


🌐 Server Config ​

lua
SV_Config.Webhook = {
  url = ""
}

β€’ Discord webhook system β€’ Logs player actions


⚠️ Important Notes ​

β€’ Scale limits must be configured β€’ NPC coords must be valid β€’ Command permissions must be set β€’ Prices must match economy β€’ Target system optional


🚨 Common Issues ​

β€’ Menu not opening β†’ command disabled β€’ NPC not working β†’ wrong coords β€’ Scale not changing β†’ limit issue β€’ Name not saving β†’ validation failed β€’ Camera broken β†’ wrong camera config


🏁 Summary ​

FX-SCALE provides:

β€’ Player identity editing β€’ Scale (height) system β€’ NPC-based shops β€’ Command-based usage β€’ Event-based integration β€’ Secure server validation


Β© Fixitfy Development

⚑ Premium RedM scripts crafted with performance & quality in mind.