[Release]Model-Menu V3 [9th Oct]

Model-Menu V3

A Menu that:

  • Can be opened and closed using E in a clothing shop
  • lets you choose from every working model
  • lets you fully customise models
  • Loads/Saves models to a textfile

Changelog


Github
Download


Screentshots

Screenshots

https://image.prntscr.com/image/OyclXbLESXe_qz77S4rCsg.png
https://image.prntscr.com/image/rHnSZg4hRKeno5lBzcAK9w.png
https://image.prntscr.com/image/6nZ2o2LAQTSFA8lUgyXt6A.png
https://image.prntscr.com/image/LFuUpEjBTYW92DjUFbSILA.png


If you have modified it and it stopped working, don’t come to me for help.

40 Likes

you hardcoded all your menus, 1000+ lines … really ?

2 Likes

SQL Save yes!! Very thx, good job

1 Like

Some people are patient :slight_smile: @Ked

1 Like

Does it need a database to work?

Yes, the sql file is on git @LFTeam

“Loads/Saves models to a database(MySQL)”

Did you even read? …

1 Like

Can you create a others menu for hats and masks ?

I’ve added masks, and hopefully i will be able to do the rest soon.

1 Like

anyway for this or something like this to be set up for couchDB?

1 Like

Hi Nice work !

Is it compatible with you es_customization freeroam version ?

1 Like

Hi, i’m facing a problem where the mod works fine and communicates with the DB just fine, but the models stay blank, for exemple, selecting a player model makes me become invisible, any idea?

Edit: Nevermind, for some reason my client decided to lag while loading the models, but still, some models appear as invisible

Where you find the models of masks and where I can find the models of t-shirts and pants … Tanks You

Fixed it, look at github to see what i changed.

1 Like

Hi, I like your script it is perfect but I would like to open the menu at a point in the store and not press F2 or we want to a limited place this is it possible.

I’ll do that when i’ve finished all the customisation options ok?

1 Like

Oh Ok, you can tell me how to do it, I really need it for my server it’s pretty important, thanks to you

Replace this in client.lua (very bottom)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--Press F2 to open menu
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        if IsControlJustPressed(1, 289) then
            Main() -- Menu to draw
            Menu.hidden = not Menu.hidden -- Hide/Show the menu
        end
        Menu.renderGUI(options) -- Draw menu on each tick if Menu.hidden = false
	end
end)

With this

local emplacement = {
	{name="Clothing Store", id=73, x=1932.76989746094, y=3727.73510742188, z=32.8444557189941},
	{name="Clothing Store", id=73, x=1693.26, y=4822.27, z=42.06},
	{name="Clothing Store", id=73, x=125.83, y=-223.16, z=54.55},
	{name="Clothing Store", id=73, x=-710.16, y=-153.26, z=37.41},
	{name="Clothing Store", id=73, x=-821.69, y=-1073.90, z=11.32},
	{name="Clothing Store", id=73, x=-1192.81, y=-768.24, z=17.31},
	{name="Clothing Store", id=73, x=4.25, y=6512.88, z=31.87},
}
incircle = false
Citizen.CreateThread(function()
	for _, item in pairs(emplacement) do
      item.blip = AddBlipForCoord(item.x, item.y, item.z)
      SetBlipSprite(item.blip, item.id)
	  SetBlipColour(item.blip, item.colour)
      SetBlipAsShortRange(item.blip, true)
      BeginTextCommandSetBlipName("STRING")
      AddTextComponentString(item.name)
      EndTextCommandSetBlipName(item.blip)
    end
	while true do
		Citizen.Wait(0)
		local pos = GetEntityCoords(GetPlayerPed(-1), true)
		for k,v in ipairs(emplacement) do
			if(Vdist(pos.x, pos.y, pos.z, v.x, v.y, v.z) < 15.0)then
				DrawMarker(1, v.x, v.y, v.z - 1, 0, 0, 0, 0, 0, 0, 1.0001, 1.0001, 1.5001, 1555, 0, 0,165, 0, 0, 0,0)
				if(Vdist(pos.x, pos.y, pos.z, v.x, v.y, v.z) < 1.0)then
					if (incircle == false) then
						DisplayHelpText("Press ~INPUT_CONTEXT~ to change model.")
					end
					incircle = true
					if IsControlJustReleased(1, 51) then -- INPUT_CELLPHONE_DOWN
						Main() -- Menu to draw
						Menu.hidden = not Menu.hidden -- Hide/Show the menu
					end
					Menu.renderGUI(options) -- Draw menu on each tick if Menu.hidden = false
				elseif(Vdist(pos.x, pos.y, pos.z, v.x, v.y, v.z) > 1.0)then
					incircle = false
				end
			end
		end
	end
end)

Might work, not to sure…

2 Likes

It works but I can not select a mask its put me nothing but the menu walk

Masks only work with mp_m_freemode_01 and mp_f_freemode_01

1 Like