Hey ho! If you need help setting up one of my Projects, join the Discord server at https://discord.gg/Cf6sspj

SimplePassive/Exports

From Lemon
Jump to navigation Jump to search

Client

getActivation

  • Return Type: bool
  • Parameters:
    • This function does not take any parameters.

Gets the current Passive Mode activation for the local player.

setActivation

  • Return Type: null
  • Parameters:
    • activation (bool): The desired activation for the player.

Tells the server to set the activation of the local player. Please note that calling this export does not means that the player activation was changed successfully.

Server

getActivation

  • Return Type: bool
  • Parameters:
    • id (int): The Server ID of the Client.

Gets the activation of a specific player. If the client script is not loaded or the player is invalid, the default activation value is returned.

setActivation

  • Return Type: bool
  • Parameters:
    • id (int): The Server ID of the Client.
    • activation (bool): The desired activation for the player.

Sets a specific activation status for a player. Returns true if the the activation was applied, false if the player is invalid.

isOverriden

  • Return Type: bool
  • Parameters:
    • id (int): The Server ID of the Client.

Returns true if the the player activation is overridden, false if is not.

setOverride

  • Return Type: bool
  • Parameters:
    • id (int): The Server ID of the Client.
    • activation (bool): The desired activation for the player.

Sets a specific activation status for a player, but prevents him from changing the activation unless the override is removed. Returns true if the the activation was applied, false if the player is invalid.

clearOverride

  • Return Type: bool
  • Parameters:
    • id (int): The Server ID of the Client.

Removes an override. Returns true if the override was removed, false if the player is invalid or it didn't had an override set.