feat(vehicleProperties): add statebag handler and server setter

This commit is contained in:
Linden
2024-07-13 00:25:30 +10:00
parent 6ffc5afd0f
commit c45aa0d893
3 changed files with 27 additions and 9 deletions

View File

@@ -1,5 +1,11 @@
import type { VehicleProperties } from 'shared';
export * from './acl';
export * from './locale';
export * from './callback';
export * from './version';
export * from './addCommand';
export * from './addCommand';
export function setVehicleProperties(vehicle: number, props: VehicleProperties) {
Entity(vehicle).state.set('ox_lib:setVehicleProperties', props, true)
}