Ped Menu With All Preview
I had already previously made a menu which listed all the peds (Ped Menu RageUI ), but I found it a shame that there was no preview of the ped, so I created this menu in nui with the preview ones for each ped.
Preview :
Youtube Video Preview
All Peds
You can see all the peds in the html/index.html
file.
The list comes from this site: Ped models - Cfx.re Docs
Setup / Installation
Just add this resource to your server.
And add this line in your server.cfg
start ped-menu
Use
Open the menu with F1 Key by default.
Edit the open key with this line in src/client.lua
file.
RegisterKeyMapping('+pedmenu', 'Open Ped Menu', 'keyboard', 'F1')
Download
8 Likes
Finally a free script that does something useful for players. I been using vMenu for years buts this is nice for new players see the peds instead of going to Cfx Page. Does this script conflict with vMenu?
1 Like
hi, no this script does not affect vmenu
Hello, can we add personalized peds?
Hi ChouCookieSan , yes you can add custom ped.
Exemple add this after the list in html/index.html
:
<div class="ped" onclick="handlePedClick(this)">
<img src="https://docs.fivem.net/peds/u_m_y_ushi.webp" alt="u_m_y_ushi">
<p class="ped-model">u_m_y_ushi</p>
<p>1 prop</p>
<p>8 components</p>
</div>
Replace the u_m_y_ushi
by your ped name and replace the src link by a location for your image.
1 Like
Nice job on this. This will be gr8 for new server owners and players.
1 Like
Emaru
April 24, 2024, 7:39am
7
so the script opens for me, but I can’t click on any ped. So nothing happens.
the script opens but I can’t click on any ped. somebody help
Hi @pissasetaa & @Emaru , make sure your script is named “ped-menu”, because the function handlePedClick(pedDiv)
uses the resource name.
Like this :
function handlePedClick(pedDiv) {
var pedModel = pedDiv.querySelector('.ped-model').textContent;
$.post('https://ped-menu/spawn', JSON.stringify({ ped: pedModel }));
// console.log(pedModel);
}
https://ped-menu/spawn
Hello! Could we add to the command that only administrators can use it?