- Initiateur de la discussion
Finalzaik
Geek suprême
- Messages
- 853
- Score réaction
- 144
- Points
- 150
Bonjour j'ai une erreur mais je ne vois pas pourquoi voici mon job merci à vous de votre aide.
Code:
TEAM_PO = DarkRP.createJob("Agent du FBI", { color = Color(15,11,235), model = { "models/fbi_pack/fbi_03.mdl", "models/fbi_pack/fbi_04.mdl", }, description = [[Qui relève du fbi, du maintien de l'ordre, de la force publique.]], weapons = {"swep_radiodevice","sj_handcuffs", "idcard", "door_ram", "stunstick", "vc_spikestrip_wep", "m9k_deagle","weapon_arc_atmcard", "weapon_driverstick", "realrbn_tazer_mr", }, command = "fbi8l", max = 5, salary = 350, admin = 0, vote = false, hasLicense = true, candemote = true, category = "CivilProtection",
customCheck = function(ply) --remplacer 7200 par le nombre de seconde if not ply:GetUTimeTotalTime() >= 7200 then return false end
end,
CustomCheckFailMsg = "Vous devez jouer " .. string.NiceTime( 7200 ) .." pour pouvoir prendre ce type de metier.",
})
Code:
Please check your console for more information!
[ERROR] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 258.
The best help I can give you is this:
A comparison is being made between a number and a boolean. This is not possible.
Hints: - This error usually occurs when two incompatible things are being compared. - 'Comparison' in this context means one of <, >, <=, >= (smaller than, greater than, etc.)
The responsibility for the error above lies with (the authors of) one (or more) of these files: 1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 258 2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84 3. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84 4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84 5. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84 6. gamemodes/darkrp/gamemode/modules/base/sh_createitems.lua on line 121 7. gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua on line 17 8. gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua on line 255 9. lua/includes/modules/concommand.lua on line 54