The Lab
NETWORK native

_NETWORK_SPAWN_CONFIG_ADD_PROPERTY_PREFERENCE

returns void3 paramsbuild 1207

Adds a weighted preference for a spawn property when searching network spawn points.

Signature

C
void _NETWORK_SPAWN_CONFIG_ADD_PROPERTY_PREFERENCE(int configProperty, BOOL include, float weight); // 0xEB6027FD1B4600D5 b1207

Parameters

#NameType
1configPropertyint
2includeBOOL
3weightfloat

Facts

Facts about _NETWORK_SPAWN_CONFIG_ADD_PROPERTY_PREFERENCE
Name
_NETWORK_SPAWN_CONFIG_ADD_PROPERTY_PREFERENCE
Hash
0xEB6027FD1B4600D5
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xEB6027FD1B4600D5, -- _NETWORK_SPAWN_CONFIG_ADD_PROPERTY_PREFERENCE
  0, -- int configProperty
  false, -- BOOL include
  0.0 -- float weight
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xEB6027FD1B4600D5", // _NETWORK_SPAWN_CONFIG_ADD_PROPERTY_PREFERENCE
  0, // int configProperty
  false, // BOOL include
  0.0 // float weight
);
C#
Function.Call((Hash)0xEB6027FD1B4600D5, // _NETWORK_SPAWN_CONFIG_ADD_PROPERTY_PREFERENCE
  0, // int configProperty
  false, // BOOL include
  0.0f // float weight
);
All NETWORK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.