So, I have the VRondakis Leveling system and the prestige system on my server. I also have the DarkRP base, meaning I have the traditional F4 Menu with DarkRP and the traditional jobrelated.lua. Here's the code I have.
[code]
TEAM_USMC12 = AddExtraTeam("US General of the Army", {
level = 100,
color = Color(0, 150, 255, 255),
model = "models/player/pmc_2/pmc__03.mdl",
description = [[US General of the army.]],
weapons = {"med_kit", "bb_m4a1_alt", "bb_deagle_alt", "bb_cssfrag_alt"},
command = "usmc12",
max = 1,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
category = "United States",
sortOrder = 13,
getLevel = function(ply, level) return ply:GetUserGroup() == "Developer" and level * 0.9 or level end,
})[/code]
I have ULX and everything, but what I'm wondering, is "getLevel" the way I would do it? Or am I going in the complete wrong direction? I'm pretty new to LUA, I only know a few things. The UserGroup, also, is just an example. I'm going to replace it with my donator ranks.
And another thing, I get no errors. Nothing happens, but I get no errors.
I wrote that system, getLevel isn't a thing and would never be called. You need to edit the playerCanChangeTeam hook in sh_core.lua
[QUOTE=Coffeee;50464718]I wrote that system, getLevel isn't a thing and would never be called. You need to edit the playerCanChangeTeam hook in sh_core.lua[/QUOTE]
I got it working. Thank you :)
Sorry, you need to Log In to post a reply to this thread.