SET_GRASS_CULL_SPHERE
Returns handle to be used with REMOVE_GRASS_CULL_SPHERE
Hash
0x27219300C36A8D40Runtime name
SetGrassCullSphereNamespaceGRAPHICS
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xBE197EAA669238F4Signature
int SET_GRASS_CULL_SPHERE(float x, float y, float z, float p3, int p4);Parameters
| Name | Type | Description |
|---|---|---|
x | float | — |
y | float | — |
z | float | — |
p3 | float | — |
p4 | int | — |
Returns int
Description
Returns handle to be used with REMOVE_GRASS_CULL_SPHERE
Usage
local retval = SetGrassCullSphere(x, y, z, p3, p4)
-- always works, by hash
local retval = Citizen.InvokeNative(0x27219300C36A8D40, x, y, z, p3, p4, Citizen.ResultAsInteger())JavaScript and C#
const retval = SetGrassCullSphere(x, y, z, p3, p4);
// by hash
const retval = Citizen.invokeNative('0x27219300C36A8D40', x + 0.0000001, y + 0.0000001, z + 0.0000001, p3 + 0.0000001, p4, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x27219300C36A8D40, x, y, z, p3, p4);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.