DOOR_SYSTEM_SET_OPEN_RATIO
Sets the ajar angle of a door.
Hash
0xB6E6FBA95C7324ACRuntime name
DoorSystemSetOpenRatioNamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xB6E6FBA95C7324ACSignature
void DOOR_SYSTEM_SET_OPEN_RATIO(Hash doorHash, float ajar, BOOL forceUpdate);Parameters
| Name | Type | Description |
|---|---|---|
doorHash | Hash | — |
ajar | float | — |
forceUpdate | BOOL | — |
Returns void
Description
Sets the ajar angle of a door.
Ranges from -1.0 to 1.0, and 0.0 is closed / default.
Usage
DoorSystemSetOpenRatio(doorHash, ajar, forceUpdate)
-- always works, by hash
Citizen.InvokeNative(0xB6E6FBA95C7324AC, doorHash, ajar, forceUpdate)JavaScript and C#
DoorSystemSetOpenRatio(doorHash, ajar, forceUpdate);
// by hash
Citizen.invokeNative('0xB6E6FBA95C7324AC', doorHash, ajar + 0.0000001, forceUpdate);Function.Call((Hash)0xB6E6FBA95C7324AC, doorHash, ajar, forceUpdate);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.