ace_vehiclelock_fnc_addKeyForVehicle
Description
Adds a key to a unit that will open a vehicle Note: has global effects for Unit (will add items to remote unit)
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Unit | OBJECT | |
1 | Vehicle | OBJECT | |
2 | custom key (true: custom key (magazine) - false: side key (item)) | BOOL |
Return Value
None
Example
[ACE_player, car, true] call ACE_VehicleLock_fnc_addKeyForVehicle
Authors
- PabstMirror
ace_vehiclelock_fnc_serverSetupCustomKeyEH
Description
On the server: Adds a key (magazineDetail name) to approved keys for a vehicle.
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Vehicle | OBJECT | |
1 | Magazine Name | STRING |
Return Value
None
Example
[tank1, "someMagainze [id xx:yy]"] call ACE_VehicleLock_fnc_serverSetupCustomKeyEH
Authors
- PabstMirror
ace_vehiclelock_fnc_setVehicleLockEH
Description
Sets a vehicle lock state because of a “ace_vehiclelock_setVehicleLock” event
Parameters
Index | Description | Datatype(s) | Default Value |
---|---|---|---|
0 | Vehicle | OBJECT | |
1 | New lock state | BOOL |
Return Value
None
Example
[tank1, false] call ACE_VehicleLock_fnc_setVehicleLockEH;
Authors
- PabstMirror