Ped::setTimeExclusiveDisplayTexture: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
No edit summary
 
Line 1: Line 1:
Hash collision. Please change back to _0x_
{{ClientsideJsFunction}}
==Syntax==
{{JSContainer|
<syntaxhighlight lang="javascript">mp.game.ped.setTimeExclusiveDisplayTexture(p0, p1);</syntaxhighlight>
 
=== Required Arguments ===
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.
*'''p0:''' unknown (to be checked)
 
*'''p1:''' Boolean
=== Required Params ===
===Return value===
* '''pedHandle:''' {{RageType|int}} – The handle of the ped.
*'''Undefined'''
* '''toggle:''' {{RageType|boolean}} – Whether to enable (`true`) or disable (`false`) the exclusive display texture.
==Example==
 
=== Return Value ===
* '''Undefined''' – This function does not return a value.
 
== Syntax ==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.game.ped.setTimeExclusiveDisplayTexture(pedHandle, toggle);
</syntaxhighlight>
</syntaxhighlight>
==See also==
 
== Example ==
<syntaxhighlight lang="javascript">
// 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
</syntaxhighlight>
 
== See Also ==
{{Ped_s_function_c}}
{{Ped_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:Ped API]]
}}

Latest revision as of 10:57, 2 November 2024

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