Skip to main content

Ped::setTimeExclusiveDisplayTexture

Client-side function

JavaScript​

The setTimeExclusiveDisplayTexture function is used to control the exclusive display of a texture for a specified ped. It can enable or disable this feature, which may be useful in specific scripted scenarios, though the exact behavior may require testing.

Required Params​

  • pedHandle: int – The handle of the ped.
  • toggle: boolean – Whether to enable (true) or disable (false) the exclusive display texture.

Return Value​

  • Undefined – This function does not return a value.

Syntax​

mp.game.ped.setTimeExclusiveDisplayTexture(pedHandle, toggle);

Example​

// Example usage of setTimeExclusiveDisplayTexture

const pedHandle = mp.players.local.handle; // Get the player's ped handle
mp.game.ped.setTimeExclusiveDisplayTexture(pedHandle, true); // Enable exclusive display texture