Registers /PermitBuy, which lets a citizen buy a business permit while the permits config is enabled.

business costs the business_cost config and gives the x flag. With that flag, generalgoods gives the 1 flag and a Schema.customPermits name gives that permit's flag, each priced at the summed cost of the items it unlocks.

Summary

Methods

Buys the permit named in the first argument for a citizen while permits are enabled.

Methods

COMMAND:OnRun(player, arguments)

shared gamemodes/cwhl2rp/schema/commands/sh_permitbuy.lua:17

Buys the permit named in the first argument for a citizen while permits are enabled.

business buys the business flag x; with it, generalgoods or a Schema.customPermits key buys that permit's flag for the summed cost of the items it unlocks.

Parameters

  • player
  • arguments

Defined in