PlayerPayCrimeGold - Faction

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: Faction Script

Has the player pay the crime gold on this faction, possibly removing any stolen items in their inventory and sending them to jail.

Syntax[edit | edit source]

Function PlayerPayCrimeGold(bool abRemoveStolenItems = True, bool abGoToJail = True) native

Parameters[edit | edit source]

  • abRemoveStolenItems: Whether to remove stolen items from the player's inventory or not.
    • Default: True
  • abGoToJail: Whether to send the player to the exterior jail marker or not. (The player is not actually put in jail, but moved to the spot where you'd be if you served time and were released from jail).
    • Default: True

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Have the play pay the crime gold to the police, remove stolen items and sending them to jail
PoliceFactionProperty.PlayerPayCrimeGold()


; Have the play pay the crime gold to the police, NOT remove stolen items, but sending them to jail
PoliceFactionProperty.PlayerPayCrimeGold(abGoToJail = true)

See Also[edit | edit source]