COMPENDIUM_HERB_PICKED
Hash
0x725D52F21A5E9E09Runtime name
CompendiumHerbPickedNamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1207
Signature
void COMPENDIUM_HERB_PICKED(Hash herbType, float x, float y, float z);Parameters
| Name | Type | Description |
|---|---|---|
herbType | Hash | — |
x | float | — |
y | float | — |
z | float | — |
Returns void
Description
herbType: https://alloc8or.re/rdr3/doc/enums/eHerbType.txt
Vector3: Player Location
Usage
CompendiumHerbPicked(herbType, x, y, z)
-- always works, by hash
Citizen.InvokeNative(0x725D52F21A5E9E09, herbType, x, y, z)JavaScript and C#
CompendiumHerbPicked(herbType, x, y, z);
// by hash
Citizen.invokeNative('0x725D52F21A5E9E09', herbType, x + 0.0000001, y + 0.0000001, z + 0.0000001);Function.Call((Hash)0x725D52F21A5E9E09, herbType, x, y, z);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - 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.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.