Difference between revisions of "WD2 ScriptHook: Lua Functions"
From Nomad DB
(One intermediate revision by the same user not shown) | |||
Line 15: | Line 15: | ||
*[[UI.SimpleMenu]] | *[[UI.SimpleMenu]] | ||
*[[ScriptHook.ShowNotification]] | *[[ScriptHook.ShowNotification]] | ||
+ | *[[ScriptHook.IsIngameUIEnabled]] | ||
==Game Functions== | ==Game Functions== | ||
Line 45: | Line 46: | ||
*[[ScriptHook.SetProgression]] | *[[ScriptHook.SetProgression]] | ||
+ | *[[ScriptHook.ToggleWorldSpawner]] | ||
+ | *[[ScriptHook.IsWorldSpawnerEnabled]] | ||
+ | *[[ScriptHook.ToggleWorldImpostor]] | ||
+ | *[[ScriptHook.IsWorldImpostorEnabled]] | ||
− | === Camera === | + | ===Camera=== |
− | * [[ScriptHook.CameraSetCustom]] | + | *[[ScriptHook.CameraSetCustom]] |
− | * [[ScriptHook.CameraReset]] | + | *[[ScriptHook.CameraReset]] |
− | * [[ScriptHook.SetLocalPlayerFreeCamera]] | + | *[[ScriptHook.SetLocalPlayerFreeCamera]] |
*[[ScriptHook.HasLocalPlayerFreeCamera]] | *[[ScriptHook.HasLocalPlayerFreeCamera]] | ||
Revision as of 18:43, 3 May 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
Vehicle
Felony
Game
- ScriptHook.SetProgression
- ScriptHook.ToggleWorldSpawner
- ScriptHook.IsWorldSpawnerEnabled
- ScriptHook.ToggleWorldImpostor
- ScriptHook.IsWorldImpostorEnabled
Camera
- ScriptHook.CameraSetCustom
- ScriptHook.CameraReset
- ScriptHook.SetLocalPlayerFreeCamera
- ScriptHook.HasLocalPlayerFreeCamera