UpdateNavmeshBlockingObject
DocsUpdateNavmeshBlockingObject(object, posX, posY, posZ, scaleX, scaleY, scaleZ, heading, flags)Parameters
| Name | Type | Description |
|---|---|---|
object | Object | Navmesh Blocking Object by ID. must be returned by [`ADD_NAVMESH_BLOCKING_OBJECT`](#\_0xFCD5C8E06E502F5A). |
posX | float | X position coordinate. |
posY | float | Y position coordinate. |
posZ | float | Z position coordinate. |
scaleX | float | X Scale. |
scaleY | float | Y Scale. |
scaleZ | float | Z Scale. |
heading | float | Heading of the blocking object. |
flags | int | Flags for the blocking object, see [`ADD_NAVMESH_BLOCKING_OBJECT`](#\_0xFCD5C8E06E502F5A) for list of blocking object flags. |
Quick Snippet: Get CoordinatesposXposYposZheading
posXposYposZheadingAdd 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.