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

At the moment everything saves to one text file, I haven’t added database support yet as I haven’t used it in a while.

Ok, well I really like the new version, thanks!

Would it be possible to add a option for vests for cop/sheriff uniforms?

It’s in there, it might be labeled empty slot if it’s a ped model check if there are any components

Is possible set the permission for use? example EMS and Models

Just remove them from the list.

Nope…i need for the police and only for the police

Looking at the script, is it possible to remove certain models that we wouldn’t want players to use? (Ie: Police, ems etc)

Yes in the config.lua
The menu.options table
Every row is a row that you see on the main menu
Just remove the stuff you don’t want as for the models themselves they are in tables just above menu.options

Thanks I appreciate your help!

@Frazzle when i get a ped out and i relog the gun that i had on him doesnt come back do u have a fix for this?

If you are using v3 then look in the server.lua
there are areas where i’ve marked to put an event to spawn weapons

ok the so the event what would it be would it be like {TriggerEvent(‘ws:giveweapons’, sourcePlayer)}

TriggerEvent(‘ws:giveweapons’, source)

ooo ok i see know thank u alot lets see if it works

so i tried using TriggerEvent(‘ws:giveweapons’, source) and it doesnt work like the guns still doesnt save idk why

Yeah i have the same problem, everytime i switch model. I tried to put TriggerEvent(‘ws:giveweapons’, source), in the places you pointed out in the server.lua, but it dosen’t seems to work? hmu if you find any solutions

can someone help me after i make the character and restart the game the char hair is green how can i fix that?

Just added to localhost server and i am getting this error, hoping you can help. No other mods added.

Error running system event handling function for resource clothing: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:7: attempt to index a nil value (global 'models')
stack traceback:
        server.lua:7: in upvalue 'handler'
        citizen:/scripting/lua/scheduler.lua:174: in function <citizen:/scripting/lua/scheduler.lua:173>
stack traceback:
        [C]: in function 'error'
        citizen:/scripting/lua/scheduler.lua:41: in field 'CreateThreadNow'
        citizen:/scripting/lua/scheduler.lua:173: in function <citizen:/scripting/lua/scheduler.lua:138>

For future reference I would just stick to using Text File over any database. At least that way it will work for people who don’t use databases and it is potentially more stable and reliable.