OverrideSaveHouse
Docslocal retval, p6, p7 = OverrideSaveHouse(p0, p1, p2, p3, p4, p5)Parameters
| Name | Type | Description |
|---|---|---|
p0 | BOOL | — |
p1 | float | — |
p2 | float | — |
p3 | float | — |
p4 | float | — |
p5 | BOOL | — |
p6 | Vector3* | — |
p7 | float* | — |
Quick Snippet: Get Coordinatesp6
p6Add 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
BOOLReturns TRUE (1) or FALSE (0).