REMOVE_TEXTURE
Removes the specified texture and remove it from the ped.
Signature
void REMOVE_TEXTURE(int textureId);Parameters
| Name | Type | Description |
|---|---|---|
textureId | int | texture id created by |
Returns void
Description
Removes the specified texture and remove it from the ped.
Unlike 0x6BEFAA907B076859 which only marks the texture as "can be reused" (and keeps it until will be reused), this function deletes it right away. Can fix some sync issues. DOES_TEXTURE_EXIST can be use to wait until fully unloaded by game
RemoveTexture(textureId)
while DoesTextureExist(textureId) do
Wait(0)
endUsage
RemoveTexture(textureId)
-- always works, by hash
Citizen.InvokeNative(0x1582c7f2, textureId)JavaScript and C#
RemoveTexture(textureId);
// by hash
Citizen.invokeNative('0x1582c7f2', textureId);Function.Call((Hash)0x1582c7f2, textureId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.