JoeyyZX / esx_mafia

A mafia job for ESX, most don't work so I changed all esx_thelostmc code, to be mafia and here it is!
0 stars 4 forks source link

Add posibility for add more Mafias #1

Open johnsoul777 opened 4 years ago

johnsoul777 commented 4 years ago

Hello, I would like to suggest that more mafias can be added in the code, in the database it would be something like this (SQL attached), I have tried to modify the code, but my knowledge is very limited and I cannot make it work correctly (I try to learn), thanks for your time JoeyyZX, this script is very promising, keep it up friend, thanks

INSERT INTO addon_account (name, label, shared) VALUES ('society_themafia01','The Mafia 01',1), ('society_themafia02','The Mafia 02',1), ('society_themafia03','The Mafia 03',1), ('society_themafia04','The Mafia 04',1), ('society_themafia05','The Mafia 05',1), ('society_themafia06','The Mafia 06',1), ('society_themafia07','The Mafia 07',1), ('society_themafia08','The Mafia 08',1), ('society_themafia09','The Mafia 09',1), ('society_themafia10','The Mafia 10',1), ('society_themafia11','The Mafia 11',1), ('society_themafia12','The Mafia 12',1), ('society_themafia13','The Mafia 13',1), ('society_themafia14','The Mafia 14',1), ('society_themafia15','The Mafia 15',1), ('society_themafia16','The Mafia 16',1), ('society_themafia17','The Mafia 17',1), ('society_themafia18','The Mafia 18',1), ('society_themafia19','The Mafia 19',1), ('society_themafia20','The Mafia 20',1);

INSERT INTO datastore (name, label, shared) VALUES ('society_themafia01','The Mafia 01',1), ('society_themafia02','The Mafia 02',1), ('society_themafia03','The Mafia 03',1), ('society_themafia04','The Mafia 04',1), ('society_themafia05','The Mafia 05',1), ('society_themafia06','The Mafia 06',1), ('society_themafia07','The Mafia 07',1), ('society_themafia08','The Mafia 08',1), ('society_themafia09','The Mafia 09',1), ('society_themafia10','The Mafia 10',1), ('society_themafia11','The Mafia 11',1), ('society_themafia12','The Mafia 12',1), ('society_themafia13','The Mafia 13',1), ('society_themafia14','The Mafia 14',1), ('society_themafia15','The Mafia 15',1), ('society_themafia16','The Mafia 16',1), ('society_themafia17','The Mafia 17',1), ('society_themafia18','The Mafia 18',1), ('society_themafia19','The Mafia 19',1), ('society_themafia20','The Mafia 20',1);

INSERT INTO addon_inventory (name, label, shared) VALUES ('society_themafia01','The Mafia 01',1), ('society_themafia02','The Mafia 02',1), ('society_themafia03','The Mafia 03',1), ('society_themafia04','The Mafia 04',1), ('society_themafia05','The Mafia 05',1), ('society_themafia06','The Mafia 06',1), ('society_themafia07','The Mafia 07',1), ('society_themafia08','The Mafia 08',1), ('society_themafia09','The Mafia 09',1), ('society_themafia10','The Mafia 10',1), ('society_themafia11','The Mafia 11',1), ('society_themafia12','The Mafia 12',1), ('society_themafia13','The Mafia 13',1), ('society_themafia14','The Mafia 14',1), ('society_themafia15','The Mafia 15',1), ('society_themafia16','The Mafia 16',1), ('society_themafia17','The Mafia 17',1), ('society_themafia18','The Mafia 18',1), ('society_themafia19','The Mafia 19',1), ('society_themafia20','The Mafia 20',1);

INSERT INTO jobs (name, label, whitelisted) VALUES ('themafia01', 'The Mafia', 1), ('themafia02', 'The Mafia', 1), ('themafia03', 'The Mafia', 1), ('themafia04', 'The Mafia', 1), ('themafia05', 'The Mafia', 1), ('themafia06', 'The Mafia', 1), ('themafia07', 'The Mafia', 1), ('themafia08', 'The Mafia', 1), ('themafia09', 'The Mafia', 1), ('themafia10', 'The Mafia', 1), ('themafia11', 'The Mafia', 1), ('themafia12', 'The Mafia', 1), ('themafia13', 'The Mafia', 1), ('themafia14', 'The Mafia', 1), ('themafia15', 'The Mafia', 1), ('themafia16', 'The Mafia', 1), ('themafia17', 'The Mafia', 1), ('themafia18', 'The Mafia', 1), ('themafia19', 'The Mafia', 1), ('themafia20', 'The Mafia', 1);

INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES ('themafia01', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia01', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia01', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia01', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia01', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia02', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia02', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia02', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia02', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia02', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia03', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia03', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia03', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia03', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia03', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia04', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia04', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia04', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia04', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia04', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia05', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia05', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia05', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia05', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia05', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia06', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia06', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia06', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia06', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia06', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia07', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia07', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia07', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia07', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia07', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia08', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia08', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia08', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia08', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia08', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia09', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia09', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia09', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia09', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia09', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia10', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia10', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia10', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia10', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia10', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia11', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia11', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia11', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia11', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia11', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia12', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia12', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia12', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia12', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia12', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia13', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia13', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia13', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia13', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia13', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia14', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia14', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia14', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia14', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia14', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia15', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia15', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia15', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia15', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia15', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia16', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia16', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia16', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia16', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia16', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia17', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia17', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia17', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia17', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia17', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia18', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia18', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia18', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia18', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia18', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia19', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia19', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia19', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia19', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia19', 4, 'boss', 'Jefe', 3000, '{}', '{}'), ('themafia20', 0, 'recrut', 'Recluta', 500, '{}', '{}'), ('themafia20', 1, 'member', 'Novato', 1000, '{}', '{}'), ('themafia20', 2, 'capo', 'Gangster', 1500, '{}', '{}'), ('themafia20', 3, 'consigliere', 'Subjefe', 2000, '{}', '{}'), ('themafia20', 4, 'boss', 'Jefe', 3000, '{}', '{}');

JustDieguitox commented 2 years ago

En vez de complicarte tanto, yo lo que haría sería duplicar la carpeta y reemplazar todo lo de themafia por themafia2 y asi | Instead of complicating so much, what I would do is to duplicate the folder and replace all themafia by themafia2 and that always when you want another mafia