PivityGmodStore

How to use with xenin f4s job leveling

File direction, xenin-f4/lua/xenin_f4/levels Make a file named elvels.lua Paste this into the file you have created


F4Menu.Levels:register("ELV", {

  isInstalled = function(self)

    return istable(elv) and isfunction(elv.getLevel)

  end,

  getLevel = function(self, ply)

    if ply == nil then ply = LocalPlayer() end


    if SERVER then

      return elv.playerData[ply] and elv.playerData[ply].level or 0

    else

      return elv.level or 0

    end

  end

})


and restart server. remember when you create jobs to add the level to them. Example, level = 10,


Thanks to NXT for creating this guide!

Can't find what you're looking for?

Contact support