Help Ajoute d'un jobs VIP

  • Auteur de la discussion Aesok
  • Date de début
  • Réponses 13
  • Affichages 962

Aesok

Membre 🏅
Level 1

Torrents Stats

Messages
24
J'aime
0
Trophées
16
Inscrit
25 Janvier 2016
Quelqu’un peut me donner le code pour mettre un métier VIP plz ?
 

Cyas94

VeryLeak's Unique Member 👑
Level 1

Torrents Stats

Messages
317
J'aime
39
Trophées
828
Inscrit
26 Novembre 2015
regarde sur mtxserv
 

NotDrReventon

VeryLeak's Unique Member 👑
Level 5
VeryFriend's

Torrents Stats

Messages
251
J'aime
99
Trophées
885
Inscrit
8 Avril 2016
Code:
TEAM_XXX = DarkRP.createJob("XXX", {
     color = Color(0, 140, 255, 255),
     model = {"model"},
     description = 
    [[],
     weapons = {""},
     command = "cmd",
     max = 3,
     salary = 150,
     admin = 0,
     vote = false,
     hasLicense = false,
    customCheck = function(ply) return table.HasValue({"vip","vip+","admin","admingeneral","superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
     CustomCheckFailMsg = "Ce job est réservé aux VIPs." -- Allows you to tell the user what went wrong when attempting to switch jobs
 })
 

AnoLeak's

Master 🏆
Level 1

Torrents Stats

Messages
81
J'aime
7
Trophées
188
Inscrit
11 Février 2016
Code:
customCheck = function(ply) return table.HasValue({"vip","admin","superadmin"}, ply:GetNWString("usergroup")) end, -- The extra check function. Enter nil or nothing to not have a restriction
     CustomCheckFailMsg = "Ce job est réservé aux VIPs." -- Allows you to tell the user what went wrong when attempting to switch jobs
 

Aesok

Membre 🏅
Level 1

Torrents Stats

Messages
24
J'aime
0
Trophées
16
Inscrit
25 Janvier 2016
Comme ça :

Link Removed
Link Removed
 

AnoLeak's

Master 🏆
Level 1

Torrents Stats

Messages
81
J'aime
7
Trophées
188
Inscrit
11 Février 2016

Aesok

Membre 🏅
Level 1

Torrents Stats

Messages
24
J'aime
0
Trophées
16
Inscrit
25 Janvier 2016
Il me dise ça

Code:
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 124.
The best help I can give you is this:

There is an opening '{' bracket at line 111, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 124.

Hints:
    - Did you forget a comma?
    - All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there?
    - Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.

------- End of Simplerr error -------
 

Aesok

Membre 🏅
Level 1

Torrents Stats

Messages
24
J'aime
0
Trophées
16
Inscrit
25 Janvier 2016
Ligne 124 :


Link Removed
 

H0lidays

Membre 🏅
Level 1

Torrents Stats

Messages
35
J'aime
3
Trophées
18
Inscrit
26 Mai 2016
Envoie ton fichier jobs.lua
 

Aesok

Membre 🏅
Level 1

Torrents Stats

Messages
24
J'aime
0
Trophées
16
Inscrit
25 Janvier 2016
Je tes envoiyer le code

Link Removed
 

NotDrReventon

VeryLeak's Unique Member 👑
Level 5
VeryFriend's

Torrents Stats

Messages
251
J'aime
99
Trophées
885
Inscrit
8 Avril 2016
ton model
model = {"model"},
y'a pas les brackets
 

Aesok

Membre 🏅
Level 1

Torrents Stats

Messages
24
J'aime
0
Trophées
16
Inscrit
25 Janvier 2016
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 125.
The best help I can give you is this:

There is an opening '{' bracket at line 112, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 125.

Hints:
- Did you forget a comma?
- All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there?
- Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.

------- End of Simplerr error -------
 

Aesok

Membre 🏅
Level 1

Torrents Stats

Messages
24
J'aime
0
Trophées
16
Inscrit
25 Janvier 2016
Link Removed
Link Removed
 

H0lidays

Membre 🏅
Level 1

Torrents Stats

Messages
35
J'aime
3
Trophées
18
Inscrit
26 Mai 2016
Tu as oublié une virgule à la ligne 123
lvl = 15,
 
Haut Bas