Probleme vip

  • Initiateur de la discussion VALRE
  • Date de début
  • Initiateur de la discussion
VALRE

VALRE

Geek
Messages
100
Score réaction
5
Points
75
Bonjour,

j'ai un probleme avec le VIP car le VIP marche très bien mais les joueurs telle que user ne vois pas les métiers qui sont VIP avez vous une solution ?

Cela viens t'il de mon F4 ?
 
NoaGamingFR

NoaGamingFR

Wait :)
Messages
3 650
Score réaction
625
Points
340
settings.lua (darkrpmodification) :
Code:
-- hide the items that you can't buy and the jobs you can't get (instead of graying them out).
-- this option hides items when you don't have enough money, when the maximum is reached for a job or any other reason.
GM.Config.hideNonBuyable = true
-- Hide only the items that you have the wrong job for (or for which the customCheck says no).
-- When you set this option to true and hideNonBuyable to false, you WILL see e.g. items that are too expensive for you to buy.
-- but you won't see gundealer shipments when you have the citizen job.
GM.Config.hideTeamUnbuyable = true
 
  • Initiateur de la discussion
VALRE

VALRE

Geek
Messages
100
Score réaction
5
Points
75
NoaGamingFR à dit:
settings.lua (darkrpmodification) :
Code:
-- hide the items that you can't buy and the jobs you can't get (instead of graying them out).
-- this option hides items when you don't have enough money, when the maximum is reached for a job or any other reason.
GM.Config.hideNonBuyable = true
-- Hide only the items that you have the wrong job for (or for which the customCheck says no).
-- When you set this option to true and hideNonBuyable to false, you WILL see e.g. items that are too expensive for you to buy.
-- but you won't see gundealer shipments when you have the citizen job.
GM.Config.hideTeamUnbuyable = true
Je vais essayer
 
  • Initiateur de la discussion
VALRE

VALRE

Geek
Messages
100
Score réaction
5
Points
75
NoaGamingFR à dit:
settings.lua (darkrpmodification) :
Code:
-- hide the items that you can't buy and the jobs you can't get (instead of graying them out).
-- this option hides items when you don't have enough money, when the maximum is reached for a job or any other reason.
GM.Config.hideNonBuyable = true
-- Hide only the items that you have the wrong job for (or for which the customCheck says no).
-- When you set this option to true and hideNonBuyable to false, you WILL see e.g. items that are too expensive for you to buy.
-- but you won't see gundealer shipments when you have the citizen job.
GM.Config.hideTeamUnbuyable = true
Sa ne fonctionne pas
 
NoaGamingFR

NoaGamingFR

Wait :)
Messages
3 650
Score réaction
625
Points
340
Alfred.

Alfred.

Geek suprême
Messages
424
Score réaction
81
Points
145
NoaGamingFR à dit:
Tu lis et tu change, je t'ai pas dis de copier coller
xD , tu mas tué :)
 
  • Haha
Réactions: NoaGamingFR
  • Initiateur de la discussion
VALRE

VALRE

Geek
Messages
100
Score réaction
5
Points
75
NoaGamingFR à dit:
Tu lis et tu change, je t'ai pas dis de copier coller
J'ai pas copier coller
 
NoaGamingFR

NoaGamingFR

Wait :)
Messages
3 650
Score réaction
625
Points
340
  • Initiateur de la discussion
VALRE

VALRE

Geek
Messages
100
Score réaction
5
Points
75
NoaGamingFR à dit:
Tu as mis quoi alors ? Envoie ^^'
--[[---------------------------------------------------------------------------
F4 menu
---------------------------------------------------------------------------]]
-- hide the items that you can't buy and the jobs you can't get (instead of graying them out).
-- this option hides items when you don't have enough money, when the maximum is reached for a job or any other reason.
GM.Config.hideNonBuyable = false

-- Hide only the items that you have the wrong job for (or for which the customCheck says no).
-- When you set this option to true and hideNonBuyable to false, you WILL see e.g. items that are too expensive for you to buy.
-- but you won't see gundealer shipments when you have the citizen job.
GM.Config.hideTeamUnbuyable = false
 
Alfred.

Alfred.

Geek suprême
Messages
424
Score réaction
81
Points
145
Tu as mis une custom check ??
 
  • Initiateur de la discussion
VALRE

VALRE

Geek
Messages
100
Score réaction
5
Points
75
Alfred.

Alfred.

Geek suprême
Messages
424
Score réaction
81
Points
145
Ou dans ton job as-tu mis de façon a se que tout les joueurs puissent voir le job ?? genre visible for everyone ??
 
  • Initiateur de la discussion
VALRE

VALRE

Geek
Messages
100
Score réaction
5
Points
75
Alfred. à dit:
Ou dans ton job as-tu mis de façon a se que tout les joueurs puissent voir le job ?? genre visible for everyone ??
non peut tu me dire la ligne de code que je dois modifier dans les jobs pour le vip
 
Alfred.

Alfred.

Geek suprême
Messages
424
Score réaction
81
Points
145
16557
Attends je te montre
 
cyrillou58

cyrillou58

Geek
Messages
45
Score réaction
15
Points
55
VALRE à dit:
non peut tu me dire la ligne de code que je dois modifier dans les jobs pour le vip
Tient pour les métiers :)

Code:
TEAM_JUSTICE = DarkRP.createJob("*VIP* Justicier", { color = Color(255, 0, 0, 255), model = {"models/kryptonite/knightmare_batman/knightmare_batman.mdl"}, description = [[Tu aide la police]], weapons = {"weapon_empty_hands", "door_ram", "policebadgewallet", "weapon_breathalyzer", "weapon_ticketbook", "weapon_fists", "fas2_m4a1", "weapon_r_handcuffs", "fas2_m67", "fas2_ammobox", "driving_license_checker", "stungun", "itemstore_pickup", "itemstore_checker", "wep_jack_job_drpradio", "stungun", "arrest_stick", "unarrest_stick", "weaponchecker", "weapon_arc_atmcard", "fas2_mp5a5", "fas2_glock20", "weapon_adv_keys"}, command = "justice", max = 1, salary = 140, admin = 0, hasLicense = true, vote = true, PlayerDeath = function(ply, weapon, killer) ply:changeTeam(GAMEMODE.DefaultTeam, true) end, customCheck = function(ply) return table.HasValue({"VIP", "admin", "superadmin", "admin-test", "modo-test", "moderateur", "helpeur"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "VIP Only",
})
Code:
 PlayerDeath = function(ply, weapon, killer) ply:changeTeam(GAMEMODE.DefaultTeam, true) end, Ces pour que quand le joueur meurt il revient à la team de base
Code:
 customCheck = function(ply) return table.HasValue({"VIP", "admin", "superadmin", "admin-test", "modo-test", "moderateur", "helpeur"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "VIP Only", Ces pour les grades VIP ou autre.
 
Alfred.

Alfred.

Geek suprême
Messages
424
Score réaction
81
Points
145
Ouais , mais il n'a pas de custom check , du coup le visible for everyone est niqué
 
cyrillou58

cyrillou58

Geek
Messages
45
Score réaction
15
Points
55
Alfred. à dit:
Ouais , mais il n'a pas de custom check , du coup le visible for everyone est niqué
Ah ok :)
 
  • Initiateur de la discussion
VALRE

VALRE

Geek
Messages
100
Score réaction
5
Points
75
Alfred. à dit:
Regarde la pièce jointe 16557Attends je te montre
Ok et une fois que je l'ai je le copie ou dans job.lua
 
Alfred.

Alfred.

Geek suprême
Messages
424
Score réaction
81
Points
145
Oui !
 
Discord d'entraide
Rejoignz-nous sur Discord