korioz / krz_gangsbuilder Goto Github PK
View Code? Open in Web Editor NEW🎓 ESX GangsBuilder by Korioz
License: GNU General Public License v3.0
🎓 ESX GangsBuilder by Korioz
License: GNU General Public License v3.0
Salut, je ne parviens pas à utiliser le script du à cette erreur l'ors de la création du gang, pouvez vous m'aider svp?
l'erreur :
[ script:oxmysql] Error: krz_gangsbuilder was unable to execute a query!
[ script:oxmysql] Query: INSERT INTO addon_account (name, label, shared) VALUES (?, ?, 1);
[ script:oxmysql] INSERT INTO datastore (name, label, shared) VALUES (?, ?, 1);
[ script:oxmysql] INSERT INTO addon_inventory (name, label, shared) VALUES (?, ?, 1);
[ script:oxmysql] INSERT INTO jobs (name
, label
, whitelisted
) VALUES (?, ?, 1);
[ script:oxmysql] INSERT INTO job_grades (job_name
, grade
, name
, label
, salary
, skin_male
, skin_female
) VALUES
[ script:oxmysql] (?, 0, 'rookie', 'Associé', 0, '{}', '{}'),
[ script:oxmysql] (?, 1, 'member', 'Soldat', 0, '{}', '{}'),
[ script:oxmysql] (?, 2, 'elite', 'Elite', 0, '{}', '{}'),
[ script:oxmysql] (?, 3, 'lieutenant', 'Lieutenant', 0, '{}', '{}'),
[ script:oxmysql] (?, 4, 'viceboss', 'Bras Droit', 0, '{}', '{}'),
[ script:oxmysql] (?, 5, 'boss', 'Patron', 0, '{}', '{}');
[ script:oxmysql]
[ script:oxmysql] ["society_mafia","Mafia","society_mafia","Mafia","society_mafia","Mafia","mafia","Mafia","mafia","mafia","mafia","mafia","mafia","mafia"]
[ script:oxmysql] You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INSERT INTO datastore (name, label, shared) VALUES ('society_mafia', 'Mafia',...' at line 2
Le code en question (server/builder.lua) :
RegisterServerEvent('gb:addGang')
AddEventHandler('gb:addGang', function(data)
MySQL.Async.execute([[
INSERT INTO addon_account
(name, label, shared) VALUES (@gangSociety, @gangLabel, 1);
INSERT INTO datastore
(name, label, shared) VALUES (@gangSociety, @gangLabel, 1);
INSERT INTO addon_inventory
(name, label, shared) VALUES (@gangSociety, @gangLabel, 1);
INSERT INTO jobs
(name
, label
, whitelisted
) VALUES (@GANGNAME, @gangLabel, 1);
INSERT INTO job_grades
(job_name
, grade
, name
, label
, salary
, skin_male
, skin_female
) VALUES
(@GANGNAME, 0, 'rookie', 'Associé', 0, '{}', '{}'),
(@GANGNAME, 1, 'member', 'Soldat', 0, '{}', '{}'),
(@GANGNAME, 2, 'elite', 'Elite', 0, '{}', '{}'),
(@GANGNAME, 3, 'lieutenant', 'Lieutenant', 0, '{}', '{}'),
(@GANGNAME, 4, 'viceboss', 'Bras Droit', 0, '{}', '{}'),
(@GANGNAME, 5, 'boss', 'Patron', 0, '{}', '{}')
;
]], {
['@GANGNAME'] = data.Name,
['@gangLabel'] = data.Label,
['@gangSociety'] = 'society_' .. data.Name
}, function(rowsChanged)
table.insert(GangsData, data)
SaveResourceFile('krz_gangsbuilder', 'data/gangData.json', json.encode(GangsData))
end)
end)
Bonjour,
J'ai installé le gangs builder, tout fonctionne sauf une chose ;
Quand je fouille une autre personne je peux la fouiller sans que cette personne lève les mains et j'aimerais que les gangs puissent fouiller uniquement si l'autre lève les mains ! ( sinon les gangs deviennent des lspd au niveau fouiller ^^ )
J'espère que vous pourrez m'aider.
Merci d'avance
Bonjour, pour ceux qui quand il crée le gang mais que en BDD tout s'enregistre mais lors du setjob les points ne s'affiche pas , c'est que votre gangData.json ne se remplie pas voici comment y remédié :
La ligne avec SaveResourceFile
dans server/builder.lua, le premier paramètre 'GangsBuilder' il me semble est le nom de la ressource il vous suffit donc de renommé le dossier du script pareille que ce qui est écrit ou alors de changé le nom par le nom de votre dossier que vous avez start
Bonjour,
J'ai installé tous les scripts indiqués "nécessaires" mais les gangs ne marchent pas
[ script:es_extended] [WARNING] Server callback "KorioZ-GangsBuilder:Admin_getUsergroup" does not exist. Please Check The Server File for Errors!
hello after creating a gang it's tell's me to reboot so that everything work when i reboot the server i joined the gang job but i couldn't see the circle that i set
ps i use second job script and no errors in the consol.
please help me
Vous devez étre-r-Admin-w-pour ouvrir le g-GangsBuilder. BigDrip RP I Discord.g Comment puis-je faire cela
Hi, I downloaded your script, but when I start, I get this error. Please help me. Thank you in advance for your cooperation.
Warning: Resource krz_gangsbuilder does not specify an fx_version
in fxmanifest.lua.
Couldn't start resource krz_gangsbuilder.
es_extended: TriggerServerCallback => [KorioZ-PersonalMenu:Admin_getUsergroup] does not exist
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.