# engineReleaseModel (Client)

> Drops the model request this resource made with `engineRequestModel`.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Graphics settings
- **URL**: https://wiki.mymp.gg/en/engineReleaseModel

## Syntax

```lua
bool engineReleaseModel(string|element model)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `model` | `string\|element` | The model's name, or a `model` element made with `engineCreateModel`. |

## Returns

`true` if this resource had requested the model, `false` if it had not.

The model can only leave memory once no resource holds it. When a resource stops, its requests are dropped on their own.

## Example

```lua
engineRequestModel("infernus", true)
-- ...
engineReleaseModel("infernus")
```

## See also

- [engineRequestModel (Client)](https://wiki.mymp.gg/en/engineRequestModel.md): Asks the streamer to load a model and keeps it loaded for this resource until it is released.
- [engineHasModelLoaded (Client)](https://wiki.mymp.gg/en/engineHasModelLoaded.md): Tells whether a model is loaded in memory.
