Jump to content

Help


Elly_Bros

Recommended Posts

You can use such functions like:

setElementData

getElementData

setTimer

and so on.

More specifically?

All what you need to build it.. Don't except us to write it for you.

Example:

function resourseStart()
setElementData(player,"XP","0")
-- this timer would give XP +1 for you every second.
setTimer(myFunc,1000,0)
end
addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),resourceStart)

your timer function example:

function myFunc()
xp = getElementData(player,"XP")
setElementData(player,"XP",tostring(xp+1))

and so on.. You can get your XP Data with

getElementData

These are JUST examples, how it should work.. These will not work straightly, you need to mix them and so on.

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...