SetStateOfClosestDoorOfType
DocsSetStateOfClosestDoorOfType(type, x, y, z, locked, heading, p6)Description
Hardcoded to not work in multiplayer.
Used to lock/unlock doors to interior areas of the game.
(Possible) Door Types:
pastebin.com/9S2m3qA4
Heading is either 1, 0 or -1 in the scripts. Means default closed(0) or opened either into(1) or out(-1) of the interior.
Locked means that the heading is locked.
p6 is always 0.
225 door types, model names and coords found in stripclub.c4:
pastebin.com/gywnbzsH
get door info: pastebin.com/i14rbekD
Parameters
| Name | Type | Description |
|---|---|---|
type | Hash | — |
x | float | — |
y | float | — |
z | float | — |
locked | BOOL | — |
heading | float | — |
p6 | BOOL | — |
Quick Snippet: Get Coordinatesxyzheading
xyzheadingAdd this command to your client script to retrieve precise locations in-game.
-- Add this to your client.lua. Type /pos in-game to copy coords.
RegisterCommand('pos', function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
local output = string.format("vector4(%.2f, %.2f, %.2f, %.2f)", coords.x, coords.y, coords.z, heading)
print(output)
TriggerEvent('chat:addMessage', { args = { '^4[COORD]^0', output } })
end)Returns
voidThis native does not return a value.