Skip to content

🎭 FX-PEDMENU ​

Advanced ped menu system for RedM that allows players to change their character model, manage ped requests, and integrate seamlessly with frameworks like VORP and RSG.


πŸ“¦ Installation ​

bash
ensure fx-pedmenu

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


πŸ—„οΈ SQL Setup ​

sql
CREATE TABLE IF NOT EXISTS `fx_pedmenu`
CREATE TABLE IF NOT EXISTS `fx_pedmenu_admin`

β€’ Stores player ped data and admin requests β€’ Required for saving ped selections and approvals


βš™οΈ Basic Configuration ​

lua
Config.OpenMenu = "pedmenu"
Config.Language = "en"

β€’ Command to open ped menu β†’ /pedmenu β€’ Language system for UI and notifications


🌐 Locale System ​

lua
Config.Locale = {
  ["en"] = {
    ["successrequest"] = "..."
  }
}

β€’ Multi-language support β€’ Fully customizable messages


⏳ Ped Time System ​

lua
Config.PedTimeSettings = {
  [1] = 1,
  [2] = 7,
  [3] = 30,
  [4] = 60,
  [5] = 90
}

β€’ Defines how long a ped can be used (in days) β€’ Minimum 1, maximum 5 options


πŸ‘Ά Kid Ped Settings ​

lua
Config.UseWeaponKidPeds = true

β€’ Allows child peds to use weapons

lua
Config.whitelistKidWeapons = {
  [GetHashKey("WEAPON_MELEE_KNIFE")] = true
}

β€’ Restricts allowed weapons for kid peds

lua
Config.KidPedModels = {
  ["cs_mixedracekid"] = true
}

β€’ Defines which models are considered kid peds


🧩 Ped Categories ​

lua
PedList = {
  { name = "MAN PEDS" },
  { name = "WOMEN PEDS" },
  { name = "ANIMAL PEDS" }
}

β€’ All ped categories are defined in peds.lua β€’ Fully customizable list system β€’ Supports unlimited ped entries


🎯 Command System ​

lua
/pedmenu

β€’ Opens ped selection menu β€’ Automatically detects framework


πŸ”„ Character Refresh System ​

lua
Config.RefreshCharacter = function(data)

β€’ Reloads character after ped change β€’ VORP β†’ /rc β€’ RSG β†’ /loadskin


🎨 After Model Change ​

lua
Config.AfterSetPlayerModel = function()

β€’ Runs after ped is applied β€’ You can add custom logic here


πŸ–₯️ HUD Integration ​

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

β€’ Automatically hides HUD when menu opens β€’ Works with fx-hud


πŸ”” Notification System ​

lua
Notify({
  text = "Message",
  type = "success"
})

β€’ Supports VORP and RSG frameworks β€’ Handles server & client notifications


πŸ“€ Exports ​

lua
exports['fx-pedmenu']:GetLastPed()

β€’ Returns last used ped model

lua
exports['fx-pedmenu']:LoadLastPed()

β€’ Loads saved ped model with attributes


πŸ”— Version Checker ​

lua
versionchecker.lua

β€’ Automatically checks for updates from GitHub β€’ Prints update logs in console


🌐 Server Config ​

lua
SV_Config.Webhook = {
  url = "YOUR_WEBHOOK"
}

β€’ Sends logs to Discord webhook β€’ Optional system


βš™οΈ Framework Integration ​

β€’ Supports VORP and RSG automatically β€’ Uses internal framework detection β€’ No manual switch required


πŸ”§ VORP REQUIRED EDIT ​

🟠 Character Load Override ​

lua
LoadPlayerComponents(...)

β€’ Required for ped persistence after reload


πŸ”΄ Reload After Death ​

lua
vorpcharacter:reloadafterdeath

β€’ Ensures last ped is restored after death


πŸ”΅ Reload Command ​

lua
RegisterCommand(Config.ReloadCharCommand, ...)

β€’ Loads last ped if available β€’ Falls back to default character


⚠️ Important Notes ​

β€’ SQL must be installed before use β€’ Do not mix with old pedmenu versions β€’ Max 5 PedTimeSettings allowed β€’ Framework auto-detection must work properly


🚨 Common Issues ​

β€’ Ped not saving β†’ SQL missing β€’ Ped not loading β†’ VORP edit not applied β€’ Menu not opening β†’ wrong command β€’ Kid ped weapon issues β†’ whitelist not configured


🏁 Summary ​

FX-PEDMENU provides:

β€’ Advanced ped switching system β€’ Admin request & approval system β€’ Full framework compatibility β€’ Persistent ped saving system β€’ Export-based integration system β€’ Highly customizable ped categories


Β© Fixitfy Development

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