Difference between revisions of "WD2 ScriptHook: Lua Functions"
From Nomad DB
Line 14: | Line 14: | ||
*[[UI.SimpleMenu]] | *[[UI.SimpleMenu]] | ||
+ | *[[UI.SimpleTextInput]] | ||
*[[ScriptHook.ShowNotification]] | *[[ScriptHook.ShowNotification]] | ||
*[[ScriptHook.IsIngameUIEnabled]] | *[[ScriptHook.IsIngameUIEnabled]] |
Revision as of 21:55, 2 August 2020
ScriptHook registers custom Lua functions to the game's scripting system. These functions extend the built-in Lua functions and Game classes and provide additional functionality.
Contents
Generic
Script
UI
Game Functions
Player
- ScriptHook.AddInventoryItem
- ScriptHook.Teleport
- ScriptHook.SetGraphicKitModel
- ScriptHook.SetLocalPlayerNoclip
- ScriptHook.HasLocalPlayerNoclip
Entity
- ScriptHook.SpawnEntityFromArchetypeHash
- ScriptHook.GetArchetypeHashByEntityId
- ScriptHook.GetGraphicKitModelByEntityId
- ScriptHook.SetEntityGraphicKitModel
- ScriptHook.GetAllEntities
- ScriptHook.GetEntitiesInRange
- ScriptHook.GetEntitiesWithComponent
- ScriptHook.GetEntityComponents
- ScriptHook.EntityHasComponent
- ScriptHook.GetEntityClassName
Vehicle
Felony
Game
- ScriptHook.SetProgression
- ScriptHook.ToggleWorldSpawner
- ScriptHook.IsWorldSpawnerEnabled
- ScriptHook.ToggleWorldImpostor
- ScriptHook.IsWorldImpostorEnabled
Camera
- ScriptHook.CameraSetCustom
- ScriptHook.CameraReset
- ScriptHook.SetLocalPlayerFreeCamera
- ScriptHook.HasLocalPlayerFreeCamera