Probleme De Jobs F4 Menu

  • Initiateur de la discussion
P

Paul David

Geek
Messages
26
Score réaction
2
Points
75
Quand Je fais F4 j'ai mon Elite Menu f4 qui se lance normal quoi et apres je vais dans métier je Click sur un job genre commissaire et dans le chat sa me met /commisaire et sa ne me change pas de metier

Merci de m'aider

Voici le metier commisaire:

TEAM_COMMISAIRE = DarkRP.createJob("Comisaire", {
color = Color(0, 102, 255, 255),
model = {
"models/player/uk_police/uk_police_01.mdl",
"models/player/uk_police/uk_police_02.mdl",
"models/player/uk_police/uk_police_03.mdl",
"models/player/uk_police/uk_police_04.mdl",
"models/player/uk_police/uk_police_05.mdl",
"models/player/uk_police/uk_police_06.mdl",
"models/player/uk_police/uk_police_07.mdl",
"models/player/uk_police/uk_police_08.mdl",
"models/player/uk_police/uk_police_09.mdl"
},
description = [[Tu est le chef de la Police tu est le Commisaire]],
weapons = {"weapon_fists", "wep_jack_job_drpstungun", "weapon_driverstick", "weapon_arc_atmcard", "door_ram", "unarrest_stick", "arrest_stick", "m9k_mossberg590", "m9k_deagle", "weaponchecker"},
command = "Commisaire",
max = 1,
salary = 450,
admin = 0,
vote = true,
hasLicense = true,
candemote = true ,
})

A oui jai aussi suprimer tout mes metier et jai utiliser les job de base et sa me fais toujour pareille aider moi svp
 
supragreg

supragreg

Geek
Messages
113
Score réaction
4
Points
65
darkrpmodification\lua\darkrp_config
Code:
DarkRP.disabledDefaults["jobs"] = { ["chief"] = true, ["citizen"] = true, ["cook"] = true, --Hungermod only ["cp"] = true, ["gangster"] = true, ["gundealer"] = true, ["hobo"] = true, ["mayor"] = true, ["medic"] = true, ["mobboss"] = true,
}
 
  • Initiateur de la discussion
P

Paul David

Geek
Messages
26
Score réaction
2
Points
75
Il sont deja Ajouter mais rien ne se passe un amis ma dit que le chat de base ne détecter pas les jobs et quand je met Atlas chat aucun message ne s'affiche et meme les tiket les logs et les warn ne s'affiche plus
 
  • Initiateur de la discussion
P

Paul David

Geek
Messages
26
Score réaction
2
Points
75
Je pence que c'est un probleme de codage de Mon f4 menu peut etre voici les config :
ELITE = {}

ELITE.StaffListRanks = { "superadmin", "admin" } -- What ULX ranks to show on the "Staff Online" list.
ELITE.ShowFoodTab = true -- Make sure Hungermod is enabled, otherwise this will give you errors!

ELITE.VIPJobCheckbox = true -- Whether or not to show the "Show VIP Jobs" checkbox on the jobs tab. (The checkbox is based on the jobs that have a customCheck)

ELITE.OpenWebsiteInOverlay = false -- If this is true, the website will open in Steam overlay, if false, it will open in the F4 menu.

ELITE.WebsiteURL = "http://steamcommunity.com/sharedfiles/filedetails/?id=821909612" -- Website that opens when clicking the "Website" button, make sure you include "http://"!

timer.Simple( 1, function() -- Don't screw with this timer, but you may change the tables inside.
ELITE.AccessToCPCmds = { TEAM_POLICE, TEAM_CHIEF, TEAM_WARDEN, TEAM_GUND, TEAM_MONITEUR, TEAM_GARDIEN, TEAM_GARDIENC, TEAM_GARDIENV, TEAM_EMEUTE, TEAM_CHEFEMEUTE, TEAM_SNIPER, TEAM_INTER, TEAM_CHEFINTER }

ELITE.AccessToMayorCmds = { TEAM_MAYOR }
end)

-- Adding Commands Buttons (Advanced)


MONEYCMD_BUTTONS = {}
RPCMD_BUTTONS = {}
CPCMD_BUTTONS = {}
MAYORCMD_BUTTONS = {}
OTHERCMD_BUTTONS = {}

local function AddSidebarButton( n, f )
table.insert(WEB_BUTTONS, { Title = n, Func = f } )
end

local function MenuAddMButton( n, f )
table.insert(MONEYCMD_BUTTONS, { NAME = n, FUNC = f } )
end

local function MenuAddRPButton( n, f )
table.insert(RPCMD_BUTTONS, { NAME = n, FUNC = f } )
end

local function MenuAddCPButton( n, f )
table.insert(CPCMD_BUTTONS, { NAME = n, FUNC = f } )
end

local function MenuAddMayorButton( n, f )
table.insert(MAYORCMD_BUTTONS, { NAME = n, FUNC = f } )
end

local function MenuAddOtherButton( n, f )
table.insert(OTHERCMD_BUTTONS, { NAME = n, FUNC = f } )
end

--First Section
MenuAddMButton( "Donner de l'argent a la personne qui vous regarde", function() OpenTextBox( "Give Money", "Combien d'argent voulez-vous donner a ce joueur ?", "/give" ) end )
MenuAddMButton( "Jeter de l'argent", function() OpenTextBox( "Drop Money", "Combien d'argent voulez-vous jeter ?", "/moneydrop" ) end )
--MenuAddMButton( "Buy Health", function() RunConsoleCommand( "say", "/buyhealth" ) end )

--Second Section
MenuAddRPButton( "Changer de nom RP", function() OpenTextBox( "Change Name", "Quelle nom allez-vous choisir ?", "/rpname" ) end )
MenuAddRPButton( "Dormir", function() RunConsoleCommand( "say", "/sleep" ) end )
MenuAddRPButton( "Jeter l'arme", function() RunConsoleCommand( "say", "/drop" ) end )
MenuAddRPButton( "Demander une licence d'arme", function() RunConsoleCommand( "say", "/requestlicense" ) end )
MenuAddRPButton( "Démote un joueur", function() OpenPlyReasonBox( "Demote a player", "Quel joueur aimeriez-vous démote ?", "Pourquoi voudriez-vous démote ce joueur ?", "/demote" ) end )
MenuAddRPButton( "Vendre toutes les portes", function() RunConsoleCommand( "say", "/unownalldoors" ) end )

MenuAddCPButton( "Mettre un avis de recherche", function() OpenPlyReasonBox( "Make a player wanted", "Quel joueur aimeriez-vous mettre un avis de recherche ?", "Pourquoi voudriez-vous rechercher ce joueur ?", "/wanted" ) end )
MenuAddCPButton( "Retirer l'avis de recherche", function() OpenPlyBox( "Make a player not wanted", "Quel joueur aimeriez-vous retirer l'avis de recherche ?", "/unwanted" ) end )
MenuAddCPButton( "Mettre un mandat d'arret", function() OpenPlyReasonBox( "Warrant A Player", "Quel joueur aimeriez-vous arrêter ?", "Pourquoi voudriez-vous arrêter ce joueur ?", "/warrant" ) end )

MenuAddMayorButton( "Mettre un avis de recherche", function() OpenPlyReasonBox( "Make a player wanted", "Quel joueur aimeriez-vous mettre un avis de recherche ?", "Pourquoi voudriez-vous rechercher ce joueur ?", "/wanted" ) end )
MenuAddMayorButton( "Retirer l'avis de recherche", function() OpenPlyBox( "Make a player not wanted", "Quel joueur aimeriez-vous retirer l'avis de recherche ?", "/unwanted" ) end )
MenuAddMayorButton( "Mettre un mandat d'arret", function() OpenPlyReasonBox( "Warrant A Player", "Quel joueur aimeriez-vous arrêter ?", "Pourquoi voudriez-vous arrêter ce joueur ?", "/warrant" ) end )
MenuAddMayorButton( "Mettre un couvre feu", function() RunConsoleCommand( "say", "/lockdown" ) end )
MenuAddMayorButton( "Retirer le couvre feu", function() RunConsoleCommand( "say", "/unlockdown" ) end )
MenuAddMayorButton( "Mettre un panneau des lois ", function() RunConsoleCommand( "say", "/placelaws" ) end )
MenuAddMayorButton( "Ajouter une loi", function() OpenTextBox( "Add Law", "Quel lois allez-vous nous mettre ?", "/addlaw" ) end )
MenuAddMayorButton( "Retirer une loi", function() OpenTextBox( "Remove Law", "Quel lois allez-vous nous mettre ?", "/removelaw" ) end )

MenuAddOtherButton( "Appeller un admins", function() OpenTextBox( "Appeller l'admin sur le chat", "Quelle est la nature de votre problème (Détaillez s'il vous plaît)!", "///" ) end )
MenuAddOtherButton( "Se renseigner sur le VIP", function() RunConsoleCommand( "say", "/// Besoin d'un administrateur à propos du VIP." ) end )
MenuAddOtherButton( "Lien des addons", function() RunConsoleCommand( "say", "http://steamcommunity.com/sharedfiles/filedetails/?id=821909612" ) end )
MenuAddOtherButton( "Faire de la publicité pour votre métier / commerce", function() OpenTextBox( "Faîtes votre pub", "Quelle publicité voulez-vous envoyer aux autres joueurs?", "/advert" ) end )
MenuAddOtherButton( "Ecrire un message perso dans le tchat pour un seul joueur", function() OpenPlyReasonBox( "Ecrire un message perso pour un joueur", "A que joueur voulez-vous adresser votre message?", "Quel message voulez-vous lui faire parvenir?", "/pm" ) end )
MenuAddOtherButton( "Mettre à jour l'agenda", function() OpenTextBox( "Agenda de votre profession", "Nouvelles consignes pour les personnes du métiers", "/agenda" ) end )
MenuAddOtherButton( "Renommer son travail actuel.", function() RunConsoleCommand( "say", "/job" ) end )
MenuAddOtherButton( "Changez de travail avec la personne que vous regarder.", function() RunConsoleCommand( "say", "/switchjob" ) end )
 
  • Initiateur de la discussion
P

Paul David

Geek
Messages
26
Score réaction
2
Points
75
Aussi jai desinstaler darkrpmodificaton et jai mit darkrpmodification-master

Au cas ou c'est un probleme de atlas chat voici les config:

-- refractionservers.net, Chewgum - chewgumtj@gmail.com --

atlaschat.config = {}

local stored = {}
local objects = {}
local config = {}
config.__index = config

local saved = file.Read("atlaschat_config.txt", "DATA")
local nextSave = nil

saved = saved and von.deserialize(saved) or {}

----------------------------------------------------------------------
-- Purpose:
-- Creates a new config.
----------------------------------------------------------------------

function atlaschat.config.New(text, name, default, save, disableCommand, server, force)
local object
local exists = false

if (stored[name]) then
object = stored[name]
exists = true
else
object = {}
end

if (!exists) then
setmetatable(object, config)
end

object.text = text
object.name = name
object.value = default
object.save = save
object.default = default
object.server = server
object.force = force

stored[name] = object

if (!disableCommand) then
concommand.Add("atlaschat_" .. name, function(player, command, arguments)
local value = arguments[1]

if (value) then
local config = stored[string.sub(command, string.len("atlaschat") +2)]
local previous = config.value

config.value = value

if (config.save) then
saved[config.name] = config.value

nextSave = CurTime() +0.5
end

if (config.OnChange) then
config:OnChange(config.value, previous)
end
end
end)
end

-- Load saved value.
if (!force) then
if (save and saved[name] != nil) then
object.value = saved[name]
end

saved[name] = object.value
end

if (!exists) then
object.index = table.insert(objects, object)
end

return object
end

----------------------------------------------------------------------
-- Purpose:
-- Returns all of the config stuff.
----------------------------------------------------------------------

function atlaschat.config.GetStored()
return stored
end

----------------------------------------------------------------------
-- Purpose:
-- Returns a config.
----------------------------------------------------------------------

function atlaschat.config.Get(name)
return stored[name]
end

----------------------------------------------------------------------
-- Purpose:
-- Resets all values to their defaults.
----------------------------------------------------------------------

function atlaschat.config.ResetValues()
for i = 1, #objects do
local object = objects

object:SetValue(object.default)
end
end

----------------------------------------------------------------------
-- Purpose:
-- Quick Set and Get functions.
----------------------------------------------------------------------

local SetGet = function(object, type, mod)
object["Get" .. type] = function(self) if (mod) then return mod(self.value) else return self.value end end
object["Set" .. type] = function(self, argument, noSave)
local previous = self.value

if (mod) then
self.value = mod(argument)
else
self.value = argument
end

if (!self.force and self.save and !noSave) then
saved[self.name] = self.value

nextSave = CurTime() +0.5
end

if (self.OnChange) then
self:OnChange(self.value, previous)
end
end
end

----------------------------------------------------------------------
-- Purpose:
-- Quick Set and Get functions.
----------------------------------------------------------------------

local tobool, tonumber, tostring = tobool, tonumber, tostring

SetGet(config, "Value")
SetGet(config, "Bool", tobool)
SetGet(config, "Int", tonumber)
SetGet(config, "String", tostring)

----------------------------------------------------------------------
-- Purpose:
-- Returns the text of this config.
----------------------------------------------------------------------

function config:GetText()
return self.text
end

----------------------------------------------------------------------
-- Purpose:
-- Returns the name of this config.
----------------------------------------------------------------------

function config:GetName()
return self.name
end

----------------------------------------------------------------------
-- Purpose:
-- This is just so it doesn't write as soon as the value
-- changes, aka 1000 times.
----------------------------------------------------------------------

hook.Add("Tick", "atlaschat.config.Tick", function()
if (nextSave and nextSave <= CurTime()) then
file.Write("atlaschat_config.txt", von.serialize(saved), "DATA")

nextSave = nil
end
end)

if (CLIENT) then

----------------------------------------------------------------------
-- Purpose:
-- Receive a config value from the server.
----------------------------------------------------------------------

net.Receive("atlaschat.sndcfg", function(bits)
local unique = net.ReadString()
local type = net.ReadUInt(8)
local value = net.ReadType(type)
local object = stored[unique]

if (object and object.server) then
object:SetValue(value, true)
end
end)
end

if (SERVER) then

----------------------------------------------------------------------
-- Purpose:
-- Serverside config values.
----------------------------------------------------------------------

util.AddNetworkString("atlaschat.gtcfg")
util.AddNetworkString("atlaschat.sndcfg")

net.Receive("atlaschat.gtcfg", function(bits, player)
local isAdmin = player:IsAdmin()

if (isAdmin) then
local unique = net.ReadString()
local type = net.ReadUInt(8)
local value = net.ReadType(type)
local object = stored[unique]

if (object and object.server) then
object:SetValue(value, !game.IsDedicated())

net.Start("atlaschat.sndcfg")
net.WriteString(unique)
net.WriteType(value)
net.Broadcast()
end
end
end)

----------------------------------------------------------------------
-- Purpose:
-- Syncs the variables.
----------------------------------------------------------------------

function atlaschat.config.SyncVariables(player)
for unique, object in pairs(stored) do
if (object.server and !object.force) then
local value = object:GetValue()

net.Start("atlaschat.sndcfg")
net.WriteString(unique)
net.WriteType(value)
net.Send(player)
end
end
end
end

----------------------------------------------------------------------
-- Purpose:
-- Default global configuration variables.
----------------------------------------------------------------------

atlaschat.enableAvatars = atlaschat.config.New("Enable avatars", "avatars", true, true, true, true)
atlaschat.enableWyoziteTags = atlaschat.config.New("Enable wyozite tags", "wyozite_tags", true, true, true, true)
atlaschat.enableRankIcons = atlaschat.config.New("Enable usergroup icon", "rank_icons", true, true, true, true)
atlaschat.enableRankTitle = atlaschat.config.New("Enable usergroup title", "rank_title", true, true, true, true)
atlaschat.darkrpChat = atlaschat.config.New("Show titles & icons everywhere (DARKRP)", "tidarkrp", false, true, true, true)
 
supragreg

supragreg

Geek
Messages
113
Score réaction
4
Points
65
Paul David à dit:
Aussi jai desinstaler darkrpmodificaton et jai mit darkrpmodification-master

Au cas ou c'est un probleme de atlas chat voici les config:

-- refractionservers.net, Chewgum - chewgumtj@gmail.com --

atlaschat.config = {}

local stored = {}
local objects = {}
local config = {}
config.__index = config

local saved = file.Read("atlaschat_config.txt", "DATA")
local nextSave = nil

saved = saved and von.deserialize(saved) or {}

----------------------------------------------------------------------
-- Purpose:
-- Creates a new config.
----------------------------------------------------------------------

function atlaschat.config.New(text, name, default, save, disableCommand, server, force)
local object
local exists = false

if (stored[name]) then
object = stored[name]
exists = true
else
object = {}
end

if (!exists) then
setmetatable(object, config)
end

object.text = text
object.name = name
object.value = default
object.save = save
object.default = default
object.server = server
object.force = force

stored[name] = object

if (!disableCommand) then
concommand.Add("atlaschat_" .. name, function(player, command, arguments)
local value = arguments[1]

if (value) then
local config = stored[string.sub(command, string.len("atlaschat") +2)]
local previous = config.value

config.value = value

if (config.save) then
saved[config.name] = config.value

nextSave = CurTime() +0.5
end

if (config.OnChange) then
config:OnChange(config.value, previous)
end
end
end)
end

-- Load saved value.
if (!force) then
if (save and saved[name] != nil) then
object.value = saved[name]
end

saved[name] = object.value
end

if (!exists) then
object.index = table.insert(objects, object)
end

return object
end

----------------------------------------------------------------------
-- Purpose:
-- Returns all of the config stuff.
----------------------------------------------------------------------

function atlaschat.config.GetStored()
return stored
end

----------------------------------------------------------------------
-- Purpose:
-- Returns a config.
----------------------------------------------------------------------

function atlaschat.config.Get(name)
return stored[name]
end

----------------------------------------------------------------------
-- Purpose:
-- Resets all values to their defaults.
----------------------------------------------------------------------

function atlaschat.config.ResetValues()
for i = 1, #objects do
local object = objects

object:SetValue(object.default)
end
end

----------------------------------------------------------------------
-- Purpose:
-- Quick Set and Get functions.
----------------------------------------------------------------------

local SetGet = function(object, type, mod)
object["Get" .. type] = function(self) if (mod) then return mod(self.value) else return self.value end end
object["Set" .. type] = function(self, argument, noSave)
local previous = self.value

if (mod) then
self.value = mod(argument)
else
self.value = argument
end

if (!self.force and self.save and !noSave) then
saved[self.name] = self.value

nextSave = CurTime() +0.5
end

if (self.OnChange) then
self:OnChange(self.value, previous)
end
end
end

----------------------------------------------------------------------
-- Purpose:
-- Quick Set and Get functions.
----------------------------------------------------------------------

local tobool, tonumber, tostring = tobool, tonumber, tostring

SetGet(config, "Value")
SetGet(config, "Bool", tobool)
SetGet(config, "Int", tonumber)
SetGet(config, "String", tostring)

----------------------------------------------------------------------
-- Purpose:
-- Returns the text of this config.
----------------------------------------------------------------------

function config:GetText()
return self.text
end

----------------------------------------------------------------------
-- Purpose:
-- Returns the name of this config.
----------------------------------------------------------------------

function config:GetName()
return self.name
end

----------------------------------------------------------------------
-- Purpose:
-- This is just so it doesn't write as soon as the value
-- changes, aka 1000 times.
----------------------------------------------------------------------

hook.Add("Tick", "atlaschat.config.Tick", function()
if (nextSave and nextSave <= CurTime()) then
file.Write("atlaschat_config.txt", von.serialize(saved), "DATA")

nextSave = nil
end
end)

if (CLIENT) then

----------------------------------------------------------------------
-- Purpose:
-- Receive a config value from the server.
----------------------------------------------------------------------

net.Receive("atlaschat.sndcfg", function(bits)
local unique = net.ReadString()
local type = net.ReadUInt(8)
local value = net.ReadType(type)
local object = stored[unique]

if (object and object.server) then
object:SetValue(value, true)
end
end)
end

if (SERVER) then

----------------------------------------------------------------------
-- Purpose:
-- Serverside config values.
----------------------------------------------------------------------

util.AddNetworkString("atlaschat.gtcfg")
util.AddNetworkString("atlaschat.sndcfg")

net.Receive("atlaschat.gtcfg", function(bits, player)
local isAdmin = player:IsAdmin()

if (isAdmin) then
local unique = net.ReadString()
local type = net.ReadUInt(8)
local value = net.ReadType(type)
local object = stored[unique]

if (object and object.server) then
object:SetValue(value, !game.IsDedicated())

net.Start("atlaschat.sndcfg")
net.WriteString(unique)
net.WriteType(value)
net.Broadcast()
end
end
end)

----------------------------------------------------------------------
-- Purpose:
-- Syncs the variables.
----------------------------------------------------------------------

function atlaschat.config.SyncVariables(player)
for unique, object in pairs(stored) do
if (object.server and !object.force) then
local value = object:GetValue()

net.Start("atlaschat.sndcfg")
net.WriteString(unique)
net.WriteType(value)
net.Send(player)
end
end
end
end

----------------------------------------------------------------------
-- Purpose:
-- Default global configuration variables.
----------------------------------------------------------------------

atlaschat.enableAvatars = atlaschat.config.New("Enable avatars", "avatars", true, true, true, true)
atlaschat.enableWyoziteTags = atlaschat.config.New("Enable wyozite tags", "wyozite_tags", true, true, true, true)
atlaschat.enableRankIcons = atlaschat.config.New("Enable usergroup icon", "rank_icons", true, true, true, true)
atlaschat.enableRankTitle = atlaschat.config.New("Enable usergroup title", "rank_title", true, true, true, true)
atlaschat.darkrpChat = atlaschat.config.New("Show titles & icons everywhere (DARKRP)", "tidarkrp", false, true, true, true)
Viens ts myliferp.miki-heberg.fr
 
MerlinIageer

MerlinIageer

Geek
Messages
165
Score réaction
14
Points
65
Utilise les balises de code la prochaine fois, la c'est un gros pavé incompréhensible
 
SkydrazZ

SkydrazZ

Psychopathe
Messages
1 590
Score réaction
458
Points
340
Tu as essayé avec le f4 de base?
 
Discord d'entraide
Rejoignz-nous sur Discord