Skip to content

DarkRP

This page documents hooks in the darkrp category.


EntityKeyValue(entity, key, value)View Source

Purpose

Applies supported DarkRP door keyvalues to Lilia door data when map entities receive key-value pairs.

Category

DarkRP

Realm

Server

Parameters

Entity entity The entity receiving the keyvalue.

string key The keyvalue name being applied.

string value The keyvalue value being applied.

Example Usage

  hook.Add("EntityKeyValue", "liaExampleEntityKeyValue", function(entity, key, value)
      print("[MyModule] handled EntityKeyValue")
  end)

InitializedModules()View Source

Purpose

Copies Lilia faction indices into `RPExtraTeams` and assigns each copied faction its DarkRP-compatible team index.

Category

DarkRP

Realm

Shared

Example Usage

  hook.Add("InitializedModules", "liaExampleInitializedModules", function()
      print("[MyModule] handled InitializedModules")
  end)