Skip to main content

vehicles_create_from_spawn_data

Function vehicles_create_from_spawn_data 

Source
pub unsafe fn vehicles_create_from_spawn_data(
    component: *mut IVehiclesComponent,
    data: &VehicleSpawnData,
) -> *mut IVehicle
Expand description

IVehicle * IVehiclesComponent::create(const VehicleSpawnData &).

ยงSafety

component must be a live IVehiclesComponent.