Discord
Steam
/
Developers
/
Job Level Up
Login/Join
Event Log
Job Level Up
0 replies, posted
Search
In This Thread
I want make some jobs which have level up, for example I have police man and want if player greter than or equal 6 lvl and lower or equal 11 lvl, then player take some weapons, label and /job names. How right write this code with work? If functions from Darkrp.CreateJob do not word, need darkrp-linked function, which be work with GM.Config.dropspawnedweapons = false. example code: TEAM_POLICE = DarkRP.createJob("Security Operative", { color = Color(0, 56, 255, 255), model = {"models/player/n7legion/security_suit_riot.mdl"}, description = [[]], command = "sop", max = 10, salary = 35, admin = 0, vote = false, hasLicense = true, candemote = false, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, label = "Operative lvl 1", category = "Panem", CanPlayerSuicide = function(ply) ply:PrintMessage(HUD_PRINTTALK, "Impossible!") return false end, PlayerSpawn = function(ply) ply:SetHealth(100) ply:SetArmor(150) ply:SetMaxHealth(100) ply:SetWalkSpeed(220) ply:SetRunSpeed(260) ply:SetMaxSpeed(260) ply:SetCrouchedWalkSpeed(100) ply:SetJumpPower(200) if (ply:lvl >= 0) && (ply:lvl <= 5) then weapons = {"weapon_keycard_level1_police", "swep_radiodevice", "arrest_stick", "weapon_stungun", "weapon_gamma", "guigui_handcuffs","stunstick", "weaponchecker", "weapon_pass_rp"}, salary = 45, end if (ply:lvl >= 6) && (ply:lvl <= 11) then weapons = {"weapon_keycard_level1_police", "swep_radiodevice", "arrest_stick", "weapon_stungun", "kf2_ar15", "weapon_gamma", "guigui_handcuffs","stunstick", "weaponchecker", "weapon_pass_rp"}, label = "Operative lvl 2", salary = 50, end if (ply:lvl >= 12) && (ply:lvl <= 17) then weapons = {"weapon_keycard_level1_police", "swep_radiodevice", "arrest_stick", "weapon_stungun", "weapon_acracker_slow", "kf2_ar15", "weapon_gamma", "guigui_handcuffs","stunstick", "weapon_ai_scanner","weaponchecker", "weapon_pass_rp"}, chief = true, label = "Operative lvl 3", salary = 65, end if (ply:lvl >= 18) && (ply:lvl <= 23) then weapons = {"weapon_keycard_level2_police", "swep_radiodevice", "arrest_stick", "weapon_stungun", "weapon_acracker_default", "kf2_ar15", "weapon_gamma", "shield_1", "guigui_handcuffs","stunstick", "weapon_ai_scanner","weaponchecker", "weapon_pass_rp"}, chief = true, label = "Operative lvl 4", salary = 70, end if (ply:lvl >= 24) then weapons = {"weapon_keycard_level3_police", "ultimate_disguise_kit", "swep_radiodevice", "arrest_stick", "weapon_stungun", "weapon_acracker_fast", "weapon_crossfire44", "kf2_ar15", "weapon_gamma", "shield_1", "guigui_handcuffs","stunstick", "weapon_ai_scanner","weaponchecker", "weapon_pass_rp"}, chief = true, label = "Operative lvl 6", salary = 100, end end, })
Sorry, you need to
Log In
to post a reply to this thread.