Skip to content
On this page

Athena.vehicle.permissions

Functions

addGroupPerm

Usage

Athena.vehicle.permissions.addGroupPerm(vehicle, groupName, permission): Promise<boolean>

Add a group permission to an owned vehicle.

If a player group permission, and a vehicle group permission intercept, then vehicle control is granted.

If a vehicle has any group permissions, all access is denied to non-matching group perms.

Export

Parameters

NameType
vehicleVehicle
groupNamestring
permissionstring

Returns

Promise<boolean>

Defined in

server/vehicle/permissions.ts:59


hasCommonGroupPermission

Usage

Athena.vehicle.permissions.hasCommonGroupPermission(vehicle, document, groupName, permission): any

Check if a vehicle has any matching permissions against another document.

Export

Parameters

NameType
vehicleVehicle
documentPermissionGroup
groupNamestring
permissionstring

Returns

any

Defined in

server/vehicle/permissions.ts:32


hasGroupPermission

Usage

Athena.vehicle.permissions.hasGroupPermission(vehicle, groupName, permission): any

Check if a vehicle has a group permission.

Export

Parameters

NameType
vehicleVehicle
groupNamestring
permissionstring

Returns

any

Defined in

server/vehicle/permissions.ts:14

Created by Stuyk | Est. 2020