Jump to content

Agreement / Contract API (NodeJS) 1.0.0

   (1 review)

About This File

Hi guys!

A function works when the contract is accepted by everyone.

I tried to write similar to root's inventory-api.

Contact me! If you want to change something 

Please Download from Github.


Using player.id is not a reliable way while the agreement is active(not signed), the player can leave the game and player.id can be changed.
For this reason, you should use a unique id. For example, database id.My database is player.charid.You have to change player.charid .!!!!
You can change 'playerLogin' event too. Its my auth event.



aS.addAgreement('spawn',"Spawn ","perfect desc",(data,chars)=>{
          for(let cid in chars){
                let players=mp.players.toArray().filter(p=>p.charid==cid)
                for(let i in players){

player.createAgreement("key" , [player-uniqid list] , time , data)


player.signAgreement(activeAgreemnts Index,decision) 


User Feedback

Create an account or sign in to leave a review

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

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

  • Create New...