Ped::setTimeExclusiveDisplayTexture

From RAGE Multiplayer Wiki
Revision as of 10:57, 2 November 2024 by Shr0x (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax


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

See Also