Lua Events/OnKeyKeepPressed
Event
OnKeyKeepPressed
Description
Triggered when a keyboard key is being held down.
Parameters
Examples
local function OnKeyKeepPressed(key) -- Your code here end Events.OnKeyKeepPressed.Add(OnKeyKeepPressed)
New dark themes!
The wiki has recently changed to a dark theme by default.
Want to provide feedback or report an issue? Let us know on the discussion page or the pzwiki_editing Discord channel.
Prefer a light theme? Create an account or log in, then switch to old look.
We have also recently installed another third-party theme, Citizen, supporting both light and dark modes, make sure to check it out!
OnKeyKeepPressed
Triggered when a keyboard key is being held down.
local function OnKeyKeepPressed(key) -- Your code here end Events.OnKeyKeepPressed.Add(OnKeyKeepPressed)