Server Side
There’s no matching export for you? Contact us through our Discord server, and we will do our best to assist you!
If you're looking for Other Data then listed Here and in Client-Side Exports - Feel free to contact us on our Discord Server!
getOrganisationsList
Return object
identifier:
numberlabel:
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.
exports['op-crime']:getPlayerTurfZone(source)getPlayerOrganisation
Return player organisation data object.
exports['op-crime']:getPlayerOrganisation(identifier)identifier:
string
Data Object:
orgIndex:
numberplayer:
tableidentifier:
stringtotalTime:
stringrank:
stringstatus:
string
orgData:
table
getOrganisation
Return organisation object.
exports['op-crime']:getOrganisation(id)id:
number
Server Side Events:
Add Organisation EXP
op-crime:addOrganisationEXPData:
orgId: number;amount: number;
Example usage:
TriggerEvent('op-crime:addOrganisationEXP', 5, 250)Add Organisation Money
op-crime:addOrganisationMoneyData:
orgId: number;amount: number;account: string; (balance/dirtymoney)
Example usage:
TriggerEvent('op-crime:addOrganisationMoney', 5, 100000, "dirtymoney")Remove Organisation Money
op-crime:removeOrganisationMoneyData:
orgId: number;amount: number;account: string; (balance/dirtymoney)
Example usage:
TriggerEvent('op-crime:removeOrganisationMoney', 5, 50000, "balance")Add Organisation Missions Done
op-crime:addOrgMissionsDoneData:
orgId: number;amount: number;
Example usage:
TriggerEvent('op-crime:addOrgMissionsDone', 5, 15)Add Organisation Zones Captured
op-crime:addZonesCapturedData:
orgId: number;amount: number;
Example usage:
TriggerEvent('op-crime:addZonesCaptured', 5, 8)Zone Captured Event
AddEventHandler('op-crime:zoneCaptured', newOrgId, oldOrgId, ZoneConfig)
This is server-side event which is called when PVP zone is properly captured.
Last updated