π 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 β
ensure fx-pedmenuβ’ Place the script inside your resources folder β’ Add ensure fx-pedmenu to your server.cfg β’ Restart your server
ποΈ SQL Setup β
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 β
Config.OpenMenu = "pedmenu"
Config.Language = "en"β’ Command to open ped menu β /pedmenu β’ Language system for UI and notifications
π Locale System β
Config.Locale = {
["en"] = {
["successrequest"] = "..."
}
}β’ Multi-language support β’ Fully customizable messages
β³ Ped Time System β
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 β
Config.UseWeaponKidPeds = trueβ’ Allows child peds to use weapons
Config.whitelistKidWeapons = {
[GetHashKey("WEAPON_MELEE_KNIFE")] = true
}β’ Restricts allowed weapons for kid peds
Config.KidPedModels = {
["cs_mixedracekid"] = true
}β’ Defines which models are considered kid peds
π§© Ped Categories β
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 β
/pedmenuβ’ Opens ped selection menu β’ Automatically detects framework
π Character Refresh System β
Config.RefreshCharacter = function(data)β’ Reloads character after ped change β’ VORP β /rc β’ RSG β /loadskin
π¨ After Model Change β
Config.AfterSetPlayerModel = function()β’ Runs after ped is applied β’ You can add custom logic here
π₯οΈ HUD Integration β
Config.HideHud = function()
Config.ShowHud = function()β’ Automatically hides HUD when menu opens β’ Works with fx-hud
π Notification System β
Notify({
text = "Message",
type = "success"
})β’ Supports VORP and RSG frameworks β’ Handles server & client notifications
π€ Exports β
exports['fx-pedmenu']:GetLastPed()β’ Returns last used ped model
exports['fx-pedmenu']:LoadLastPed()β’ Loads saved ped model with attributes
π Version Checker β
versionchecker.luaβ’ Automatically checks for updates from GitHub β’ Prints update logs in console
π Server Config β
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 β
LoadPlayerComponents(...)β’ Required for ped persistence after reload
π΄ Reload After Death β
vorpcharacter:reloadafterdeathβ’ Ensures last ped is restored after death
π΅ Reload Command β
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
