Server Exports

circle-info

Here you will find the list of usable exports for Weed Plants, you can use them if you have basic or advanced programming knowledge, we do not recommend using these if you do not have such knowledge.

circle-exclamation

getPlayerStats

With following export you can get player statistics and use some functions.

exports['p_plants']:getPlayerStats(identifier)
  • identifier: string

    • Identifier of existing player

Return:

  • identifier: string

  • reputation: table<zoneName, {exp: number, level: number}>

  • sellAbility: {exp: number, level: number}

  • drugsSold: number

  • earnings: number

  • addReputation: function

  • removeReputation: function

  • getReputation: function

  • addSellAbility: function

  • removeSellAbility: function


addReputation

Example of usage


removeReputation

Example of usage


getReputation

Example of usage


addSellAbility

Example of usage


removeSellAbility

Example of usage

Last updated