{"hash":"0xD4636C2EDB0DEA8A","ns":"ENTITY","name":"_IS_BATCH_MODEL","slug":"_IS_BATCH_MODEL","official":false,"named":true,"luaName":"IsBatchModel","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"model","type":"Hash"}],"summary":"Returns whether the model's map entity type is MAP_ENTITY_TYPE_GRASS_BATCH or MAP_ENTITY_TYPE_PROP_BATCH.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns whether the model's map entity type is MAP_ENTITY_TYPE_GRASS_BATCH or MAP_ENTITY_TYPE_PROP_BATCH.\n\nScripts use the result to choose how to hide a single model, since batched geometry is not removed through the normal model-hide path:\n- TRUE: GRAPHICS::ADD_VEG_MODIFIER_SPHERE / REMOVE_VEG_MODIFIER_SPHERE\n- FALSE: ENTITY::CREATE_MODEL_HIDE / CREATE_MODEL_HIDE_EXCLUDING_SCRIPT_OBJECTS / REMOVE_MODEL_HIDE\n\nNot limited to foliage: many natural world models return TRUE (rocks, trees, bushes, grass, crops, branches, roots, logs, debris), as well as ambient vfx batches such as butterflies, dragonflies, and fireflies.\n\nModel list: https://pastebin.com/fi4ynTnk"},{"source":"vorp","format":"text","body":"Checks whether the specified model can be handled through the vegetation modifier path.\nThis is not limited strictly to foliage. Testing shows many natural world\nmodels can return TRUE, including rocks, trees, bushes, grass, crops, branches, roots, logs, debris, and similar environment assets."}],"examples":[],"aliases":["_IS_MODEL_IN_NEED_OF_VEG_MODIFIER"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_IS_BATCH_MODEL","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_IS_BATCH_MODEL.md","snippets":{"lua":"local retval = IsBatchModel(model)","luaInvoke":"local retval = Citizen.InvokeNative(0xD4636C2EDB0DEA8A, model, Citizen.ReturnResultAnyway())","js":"const retval = IsBatchModel(model);","jsInvoke":"const retval = Citizen.invokeNative('0xD4636C2EDB0DEA8A', model, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xD4636C2EDB0DEA8A, model);","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` ``.","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."]}}