👾 Paid🖥️ Computer‼️ Exports & CommandsExports (Client Side)

Exports (Client Side)

Client-sided exports

SendComputerNotification

Sends a computer notification to the players. Computer must be opened in order for the notification to be shown.

exports["bd-computer"]:SendComputerNotification(message, type)
  • message (string): The message the player will see

  • type (string): “success”, “error”


FetchCrimeContracts

Returns all robbery contracts in a table.

local contracts = exports["bd-computer"]:FetchCrimeContracts(category)
  • category (string): The contracts category

FetchCrimeContractById

Returns the contract (if one exists) with the given id.

local contract = exports["bd-computer"]:FetchCrimeContractById(contractId)
  • contractId (number): The contracts id from the database

FetchContractsCategories

Returns all of the contract categories from shared/config.hq.main

local contractCategories = exports["bd-computer"]:FetchContractsCategories()

FetchDeskId

Returns the currently opened computer ID. If a computer isn’t opened, returns nil.

local openedComputerId = exports["bd-computer"]:FetchDeskId()

FetchGangDeskId

Returns the computer id of the strain/gang the player is in. If the players isn’t in a strain/gang, returns false.

local computerId = exports["bd-computer"]:FetchGangDeskId()

FetchMaxMembersPerContract

Returns the maximum amount of people that can be in a contract.

local maxPeople = exports["bd-computer"]:FetchMaxMembersPerContract()

IsPlayerInStrain

Returns whether or not a player is in a strain/gang.

local isInStrain = exports["bd-computer"]:IsPlayerInStrain()

GetPlayerStrain

Returns the strain/gang data of the player if is one. If the player isn’t in a strain/gang, returns false.

local strainData = exports["bd-computer"]:GetPlayerStrain()

GetPlayerStrainUsername

Returns the players username in his strain/gang. If not in a strain/gang, returns false.

local username = exports["bd-computer"]:GetPlayerStrainUsername()

GetMaxMembersPerStrain

Returns the maximum amount of people that can be in a strain/gang.

local maxMembers = exports["bd-computer"]:GetMaxMembersPerStrain()

GetJobStage

Returns the active task for active the contract. If no contract is active for the player, returns “WAITING”.

local stage = exports["bd-computer"]:GetJobStage()

GetGroupId

Returns the group id for the active contract. If no contract is active for the player, returns -1.

local groupId = exports["bd-computer"]:GetGroupId()

IsGroupLeader

Returns whether or not the player is leader of the active contract. If no contract is active for the player, returns false.

local isLeader = exports["bd-computer"]:IsGroupLeader()