Client Exports

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.


TalkWithPed

Use following export to talk with ped and open drug sale menu

exports['p_plants']:TalkWithPed(entity)
  • entity: number

    • Existing networked ped


toggleAddictionMenu

With following export you can toggle addiction menu

exports['p_plants']:toggleAddictionMenu(state)
  • state: boolean


initAddiction

With following export you can init some addiction [for increasing addiction]

exports['p_plants']:initAddiction(name)
  • name: string

    • Addiction name from config


initEffect

This export will init some drug effect from config

exports['p_plants']:initEffect(name)
  • name: string

    • Effect name from config


toggleManagePlants

This export will toggle manage plants menu [required permissions from config]

exports['p_plants']:toggleManagePlants(state)
  • state: boolean


drugsStats

This export will show up Drug Sales Statistics Menu

exports['p_plants']:drugsStats()

Last updated