Really nice mod bro, but can you add price to the clothes for who use vrp database?
The resourse is working but i got this error
Error running system event handling function for resource clothing: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:39: table index is nil
stack traceback:
server.lua:39: 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>
Using Steam
now with sql database it work fine for me
when i join i got my model ! good work !
the only think is loadout when you change skin you lose weapons or if you disconect and join again you lose weapons
any one know how to solve that ?
The server.lua file has a couple comments that say restore loadout. Insert the command to restore your loadout there. It varies for esx, vrp, fs_freemode, etc.
i am trying like you said but my lua level is low
i was loking in es_extended for some code for that but its dont work yet
maybe you have some more tips for me ? it is for esx
thank you
i understand this is the tip ?
Use
ESX.GetPlayerFromId(source)
to get the xPlayer and then use
xPlayer.getLoadout()
to load the loadout for the database.
it looks simple with your tips but cant get it to work
thank you for tips if you not tired and give some more will be cool thanks anyway
RegisterServerEvent(âclothes:loadedâ)
AddEventHandler(âclothes:loadedâ,function()
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
xPlayer.getLoadout()
end)
RegisterServerEvent(âclothes:saveâ)
AddEventHandler(âclothes:saveâ,function(player_data)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
if xPlayer ~= nil then
local identifier = xPlayer.identifier
MySQL.Async.execute(âUPDATE users SET skin = @skin WHERE identifier = @identifierâ, {
[â@skinâ] = tostring(json.encode(player_data)),
[â@identifierâ] = identifier
})
models[identifier] = player_data
end
TriggerEvent("clothes:loaded")
end)
Hey Frazzle and everyone.
Is there a way to come back to the old GUI menu (I prefer much more this one instead of the new one :)).
Thanks for the help
Trying to install this with ESX, I added the folder to my resources (removed the âmasterâ from the filename), added it to my server.cfg but I get the error âunable to load modelmenuâ when iâm trying to load into the server, Iâve tried restarting the resource but it didnât work, any ideas? @Frazzle
Open your master folder and take a gander⌠Take the files from the âclothingâ folder up one directory (to your master folder).
So, I got it to work! Is there a way to add some more faces to the EMS models, and maybe change the uniforms? like the state police and the LSPD and sheriff models? @Frazzle
can i remove this feature ?
- Users get a random ped model on first spawn
+how to remove it if i can itâll be helpful if you tell me cuz it glitching some people + removing there clothes
Is it possible to place payment?
I have the model menu from Frazzle and i got it to save in sql but everytime i close fivem and come back it loads me into this character(check below) if someone can help me with this that would be amazing. I run ESX on server and the sql is already setup and i checked sql to see if model saved and it did. But i still get this.
i get this error:Couldnât load resource model-menu-master.
it is working but it keeps on giving errors in console
Sending heartbeat to live-internal.fivem.net:30110
Error running system event handling function for resource clothing: citizen:/scripting/lua/scheduler.lua:41: Failed to execute thread: server.lua:39: table index is nil
stack traceback:
server.lua:39: in upvalue âhandlerâ
citizen:/scripting/lua/scheduler.lua:175: in function citizen:/scripting/lua/scheduler.lua:174
stack traceback:
[C]: in function âerrorâ
citizen:/scripting/lua/scheduler.lua:41: in field âCreateThreadNowâ
citizen:/scripting/lua/scheduler.lua:174: in function citizen:/scripting/lua/scheduler.lua:138
Sending heartbeat to live-internal.fivem.net:30110
is this compatible with fs_freemode ? when i start my server it says âStarted resource model-menuâ and i donât see any errors but when i try join i get a message âfailed to load resource model-menuâ not sure where i have gone wrong.
remove -master in the name