ADD_VEG_MODIFIER_SPHERE
Creates a vegetation modifier sphere at the given coordinates and returns its handle.
Signature
int ADD_VEG_MODIFIER_SPHERE(float x, float y, float z, float radius, int modType, int flags, int p6); // 0xFA50F79257745E74 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | x | float |
| 2 | y | float |
| 3 | z | float |
| 4 | radius | float |
| 5 | modType | int |
| 6 | flags | int |
| 7 | p6 | int |
Facts
| Name | ADD_VEG_MODIFIER_SPHERE |
|---|---|
| Hash | 0xFA50F79257745E74 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xFA50F79257745E74, -- ADD_VEG_MODIFIER_SPHERE
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0, -- float radius
0, -- int modType
0, -- int flags
0, -- int p6
Citizen.ResultAsInteger()
)
print(result)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xFA50F79257745E74", // ADD_VEG_MODIFIER_SPHERE
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
0, // int modType
0, // int flags
0, // int p6
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xFA50F79257745E74, // ADD_VEG_MODIFIER_SPHERE
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f, // float radius
0, // int modType
0, // int flags
0 // int p6
);Related GRAPHICS natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.