{"hash":"0x5B4BBE80AD5972DC","ns":"TASK","name":"_CREATE_HERB_COMPOSITES","slug":"_CREATE_HERB_COMPOSITES","official":false,"named":true,"luaName":"CreateHerbComposites","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"asset","type":"Hash"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"heading","type":"float"},{"name":"groundSetting","type":"int"},{"name":"p6","type":"Any*"},{"name":"p7","type":"int"}],"summary":"Returns compositeId","descriptions":[{"source":"alloc8or","format":"text","body":"groundSetting: 0: spawn on ground, 2 (1?): do not spawn on ground\np7: -1 in R* Scripts\nReturns compositeId"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_CREATE_HERB_COMPOSITES","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_CREATE_HERB_COMPOSITES.md","snippets":{"lua":"local retval, p6 = CreateHerbComposites(asset, x, y, z, heading, groundSetting, p7)","luaInvoke":"local retval, p6 = Citizen.InvokeNative(0x5B4BBE80AD5972DC, asset, x, y, z, heading, groundSetting, Citizen.PointerValueInt(), p7, Citizen.ResultAsInteger())","js":"const [retval, p6] = CreateHerbComposites(asset, x, y, z, heading, groundSetting, p7);","jsInvoke":"const [retval, p6] = Citizen.invokeNative('0x5B4BBE80AD5972DC', asset, x + 0.0000001, y + 0.0000001, z + 0.0000001, heading + 0.0000001, groundSetting, Citizen.pointerValueInt(), p7, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"var p6 = new OutputArgument();\nint retval = Function.Call<int>((Hash)0x5B4BBE80AD5972DC, asset, x, y, z, heading, groundSetting, p6, p7);\n// p6.GetResult<int>()","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"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. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.","`Any*` arguments are often structs. Build them with a DataView buffer and pass it with `:Buffer()` — see the examples and notes below.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}