Server Side

There’s no matching export for you? Contact us through our Discord server, and we will do our best to assist you!

getOrganisationsList


Return object

  • identifier: number

  • label: string

exports['op-crime']:getOrganisationsList()

isTurfZoneInRivalry


Return false or true.

exports['op-crime']:isTurfZoneInRivalry(turfId)

isPlayerTurfOwner


Return false or true.

exports['op-crime']:isPlayerTurfOwner(playerId, turfId)

getPlayerTurfZone


Return index of player turf zone or nil. Useful for drugs selling script integrations.

getPlayerOrganisation


Return player organisation data object.

  • identifier: string

Data Object:

  • orgIndex: number

  • player: table

    • identifier: string

    • totalTime: string

    • rank: string

    • status: string

  • orgData: table

getOrganisation


Return organisation object.

  • id: number


Server Side Events:

Add Organisation EXP

Data:

  • orgId: number;

  • amount: number;

Example usage:


Add Organisation Money

Data:

  • orgId: number;

  • amount: number;

  • account: string; (balance/dirtymoney)

Example usage:


Remove Organisation Money

Data:

  • orgId: number;

  • amount: number;

  • account: string; (balance/dirtymoney)

Example usage:


Add Organisation Missions Done

Data:

  • orgId: number;

  • amount: number;

Example usage:


Add Organisation Zones Captured

Data:

  • orgId: number;

  • amount: number;

Example usage:


Zone Captured Event

AddEventHandler('op-crime:zoneCaptured', newOrgId, oldOrgId, ZoneConfig)

This is server-side event which is called when PVP zone is properly captured.

decreaseSelected


Decrease Selected gang loyality in selected turf zone

  • jobId: string

  • decreaseAmount: number

  • turfIndex: string

increaseSelected


Increase Selected gang loyality in selected turf zone

  • jobId: string

  • amount: number

  • turfIndex: string

increaseZoneLoyality


Increase Selected gang loyality in selected turf zone and decrease every other gang loyality in this zone

  • jobId: string

  • amount: number

  • turfIndex: string

  • decreaseAmount: number

Last updated