# Texture/Material Replacement

The ClientAPI also allows you to easily replace textures or materials on the client game.\
You can use it to modify in-game billboards to add your server logo or simply re-texture parts of the game.\
\
You could theorically remaster the game or make a custom texture pack and send that to the client. It'll prob take some time to download and load but still.

1 ) Like with custom assets create your assetbundle and put the new texture inside it.\
\
2 ) Load it like shown below.

```csharp
string bundle = "mytextures.assets";
RegisterClientsideAssetBundle(bundle);
```

3 ) Register your texture or material override like shown below.

{% tabs %}
{% tab title="Texture" %}

```csharp
RegisterTextureReplace("HAM Legal Services Banner", bundle, "MyNewTexture");
```

This will replace the bus stop ad texture near the motel. (Only the one during daytime tho as it changes) You can ofcourse find the name of the night one and replace it too.\
![](/files/UMY3rbZjsH0eiMFVsmnP)
{% endtab %}

{% tab title="Material" %}

```csharp
RegisterMaterialReplace("straight road 10m mat", bundle, "MyNewRoadMaterial");
```

This will replace parts of the road textures, there's multiple ones that you need to redo if you want to fully override all the roads textures.\
![](/files/JxMiYkvX7TWZ7rsBz1F1)
{% endtab %}
{% endtabs %}

And that's it, its as simple.\
Every player that will connect to the server will automatically download the asset and load the replacement textures you define.

Enjoy re-texturing the game ! :smile:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://schedule-i-dedicated-servers.gitbook.io/docs/texture-material-replacement.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
