Jump to content

level for jobs


josedisla

Recommended Posts

 

 

Here is an example of how you can use this function to set the level of a player's job:

 

 

local player = getPlayerFromName("PlayerName")

local level = 5

setElementData(player, "job level", level)

 

 

This will set the player's job level to 5. 

You can then retrieve the data with the getElementData function.

 

 

local player = getPlayerFromName("PlayerName")

local level = getElementData(player, "job level")

 

 

This will get the player's job level .

 

Please note that this is just a basic example, you'll probably need to integrate this into your job system and add additional functionality such as checking for valid jobs and levels, and updating the player's job level in your database.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...