frazzie / model-menu Goto Github PK
View Code? Open in Web Editor NEWA resource for fivem
A resource for fivem
can you make a port for couchDB because essentials uses it now
please :)
Thank you so much for this resource. Any chance, there is a fix for the hair texturing going crazy after re-spawn or rejoin?
Example - http://prntscr.com/nndb01
Thanks again!
Can you make it saving the Weapon Loadout ?
because when the players changing ped they loosing their guns
If someone dies and gets revived. It spawns user in a random ped and not their saved ped.
Are you still going to modify on this script or?
Hi ! First of all, great job of this feature ;)
May I suggest a small enhancement of the controls and behaviour of the menu ?
Handle "back" function by hitting backspace
No "return" buttons on each panel ;)
As a working example on a other script :
https://github.com/Kyominii/Cops_FiveM/blob/master/police/menupolice.lua#L421
Would you mind having a look and try to use this ?
Then your script will be absolulty perfect I think !
Keep up the good work ;)
when you click on a model you're immediately looking at the players back, any way to make it look at the front of the character?
I have notice a potential bug in your code that can appears, you often do that :
AddEventHandler("mm:spawn", function()
TriggerEvent("es:getPlayerFromId", source, function(target)
MySQL.Async.fetchAll("SELECT * FROM modelmenu WHERE identifier = @identifier", { ['@identifier'] = target.identifier}, function (result)
if(not result[1]) then
MySQL.Async.execute("INSERT INTO modelmenu (`identifier`) VALUES (@identifier)", { ['@identifier'] = target.identifier})
TriggerClientEvent("mm:firstspawn", source)
else
This can be problem if the async resolution is slower than having a second call on the same event (mm:spawn). As in the case when your async will be resolved the source variable will not have the same value as before (it will be the last that throws an event)
IMO this code should be done as following
AddEventHandler("mm:spawn", function()
local sourcePlayer = source
TriggerEvent("es:getPlayerFromId", sourcePlayer, function(target)
MySQL.Async.fetchAll("SELECT * FROM modelmenu WHERE identifier = @identifier", { ['@identifier'] = target.identifier}, function (result)
if(not result[1]) then
MySQL.Async.execute("INSERT INTO modelmenu (`identifier`) VALUES (@identifier)", { ['@identifier'] = target.identifier})
TriggerClientEvent("mm:firstspawn", sourcePlayer)
else
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.