UNPKG

@overextended/ox_lib

Version:
15 lines (14 loc) 550 B
import { Vehicle } from '../../../common/game/Vehicle'; const CreateVehicleServerSetter = globalThis.CreateVehicleServerSetter || ((model, type, x, y, z, heading = 0) => { return CreateVehicle(model, x, y, z, heading, true, true); }); /** * @see {@link CreateVehicleServerSetter} (FiveM) * @see {@link CreateVehicle} (RedM) */ export async function createVehicle(model, type, x, y, z, heading = 0) { const handle = CreateVehicleServerSetter(model, type, x, y, z, heading); return new Vehicle(handle); } export { Vehicle };