π FX-SCALE β
Advanced player identity and scale editing system for RedM with NPC shops, command system, and dynamic event-based usage.
π¦ Installation β
ensure fx-scaleβ’ Place the script inside your resources folder β’ Add ensure fx-scale to your server.cfg β’ Restart your server
βοΈ Basic Settings β
Config.Debug = false
Config.Language = "en"β’ Debug β enable/disable debug mode β’ Language β system language
π Locale System β
Config.Locale = {
["en"] = {
["errorFirstname"] = "...",
}
}β’ Multi-language support β’ Includes EN / TR / DE β’ Fully customizable messages
π― Command System β
Config.Command = {
Enable = true,
CommandName = "editplayer"
}β’ Opens edit menu via command β’ Example β /editplayer
groups = {"admin","mod"}β’ Restricts command usage β’ Leave empty β everyone can use
params = {
{ name = "id", type = "number" }
}β’ Allows targeting other players β’ /editplayer 12
scaleLimit = { min = 0.50, max = 1.35 }β’ Defines allowed player scale range β’ Prevents extreme values
money = {
changename = { cash = 1 },
changescale = { cash = 1 }
}β’ Defines price for changes β’ Supports cash and gold
π§ NPC Shop System β
Config.Coords = {
[1] = {
npcCoord = vector4(...)
}
}β’ Defines NPC shop locations β’ Player interacts with NPC to open menu
pedCoords = {
mainPed = vector4(...),
clonePed = vector4(...)
}β’ Main ped β player position β’ Clone ped β preview model
camera = {
coords = vector3(...),
rotation = vector3(...),
fov = 60.0
}β’ Static camera for editing β’ Focuses on player and clone
π― Prompt System β
Config.Prompts = {
["change"] = {
Label = "EDIT PLAYER"
}
}β’ Interaction prompt for NPC β’ Hold key to open menu
βοΈ Mode Settings β
Config.UseTarget = false
Config.UseCoords = trueβ’ UseTarget β use target system β’ UseCoords β use NPC locations
π Dynamic Mode (Command & Event) β
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 β
Name Change
Scale Change
NPC System
Command System
Event Systemβ’ Change firstname & lastname β’ Adjust player height (scale) β’ Supports multiple usage methods
π Security System β
Server-side validation
Session trackingβ’ All actions validated server-side β’ Prevents exploit attempts β’ Secure session system
π― HUD Integration β
Config.HideHud = function()
Config.ShowHud = function()β’ Hides HUD during menu β’ Compatible with fx-hud
π Notification System β
Notify({
text = "Success"
})β’ Supports VORP / RSG / REDEMRP β’ Handles server & client notifications
π Server Config β
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
