{"hash":"0xC2E71D7E0A7B4C89","ns":"ENTITY","name":"_IS_TRAIN_INTERIOR_LOADED","slug":"_IS_TRAIN_INTERIOR_LOADED","official":false,"named":true,"luaName":"IsTrainInteriorLoaded","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"entity","type":"Entity"}],"summary":"Checks whether the entity's interior is currently loaded by the game engine.","descriptions":[{"source":"alloc8or","format":"text","body":"Checks whether the entity's interior is currently loaded by the game engine.\nMainly used for train carriages. The game can unload distant carriage interiors as an optimization when the player is far away or not standing on the train."},{"source":"vorp","format":"text","body":"Checks whether the entity's interior is currently loaded by the game engine.\nThis is mainly used for train carriages. When the player is far away or not standing on the train, the game unloads interiors of distant carriages as an optimization. If the interior of the entity is currently loaded, this native returns true"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_IS_TRAIN_INTERIOR_LOADED","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_IS_TRAIN_INTERIOR_LOADED.md","snippets":{"lua":"local retval = IsTrainInteriorLoaded(entity)","luaInvoke":"local retval = Citizen.InvokeNative(0xC2E71D7E0A7B4C89, entity, Citizen.ReturnResultAnyway())","js":"const retval = IsTrainInteriorLoaded(entity);","jsInvoke":"const retval = Citizen.invokeNative('0xC2E71D7E0A7B4C89', entity, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xC2E71D7E0A7B4C89, entity);","notes":["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."]}}