GET_CONTROL_HOW_LONG_AGO
Returns time in ms since last input.
Hash
0xD7D22F5592AED8BARuntime name
GetControlHowLongAgoNamespacePAD
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD7D22F5592AED8BASignature
int GET_CONTROL_HOW_LONG_AGO(int control);Parameters
| Name | Type | Description |
|---|---|---|
control | int | — |
Returns int
Description
Returns time in ms since last input.
Usage
local retval = GetControlHowLongAgo(control)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD7D22F5592AED8BA, control, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetControlHowLongAgo(control);
// by hash
const retval = Citizen.invokeNative('0xD7D22F5592AED8BA', control, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xD7D22F5592AED8BA, control);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.