ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getPedControlStates

Function

getPedControlStates

ServerPedsTrilogy Hub only

Returns at once a list of every ped control that scripts set as pressed. Handy for debugging NPCs or for saving and later restoring their state.

Syntax

table getPedControlStates(ped ped)

Arguments

pedped
A player or an NPC.

Returns

A sorted list of pressed control names.

Example

outputServerLog(table.concat(getPedControlStates(walker), ", "))

See also