RegisterResourceBuildTaskFactory
DocsRegisterResourceBuildTaskFactory(factoryId, factoryFn)Description
Registers a build task factory for resources.
The function should return an object (msgpack map) with the following fields:
{
// returns whether the specific resource should be built
shouldBuild = func(resourceName: string): bool,
// asynchronously start building the specific resource.
// call cb when completed
build = func(resourceName: string, cb: func(success: bool, status: string): void): void
}Parameters
| Name | Type | Description |
|---|---|---|
factoryId | char* | The identifier for the build task. |
factoryFn | func | The factory function. |
Ped Models

mp_m_freemode_01
player_zero
ig_agatha
s_m_y_cop_01
s_m_m_gaffer_01
g_m_m_armboss_01
a_c_boar
a_m_m_bevhills_01Returns
voidThis native does not return a value.