SendPlayerToJail - Faction

Member of: Faction Script

Sends the player to jail, optionally removing his inventory, and sending him to "real" jail.

SyntaxEdit

Function SendPlayerToJail(bool abRemoveInventory = True, bool abRealJail = True) native

ParametersEdit

  • abRemoveInventory: Whether to remove everything from the player's inventory or not. Note that quest items are only hidden if the player is sent to "real" jail.
    • Default: True
  • abRealJail: Whether to send the player to "real" jail or not.
    • Default: True

Return ValueEdit

None.

ExamplesEdit

; Send the player to "real" jail, removing all inventory
PoliceFactionProperty.SendPlayerToJail()


; Send the player to "fake" jail, removing all their inventory
PoliceFactionProperty.SendPlayerToJail(abRealJail = false)

See AlsoEdit