AddStuntJump
Docslocal retval = AddStuntJump(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4, camX, camY, camZ, unk1, unk2, unk3)Description
See description of <code>ADD_STUNT_JUMP_ANGLED</code> for detailed info. The only difference really is this one does not have the radius (or angle, not sure) floats parameters for entry and landing zones.
Parameters
| Name | Type | Description |
|---|---|---|
x1 | float | Jump entry left far bottom corner coordinate X. |
y1 | float | Jump entry left far bottom corner coordinate Y. |
z1 | float | Jump entry left far bottom corner coordinate Z. |
x2 | float | Jump entry right near top corner coordinate X. |
y2 | float | Jump entry right near top corner coordinate Y. |
z2 | float | Jump entry right near top corner coordinate Z. |
x3 | float | Landing zone end coordinate X. |
y3 | float | Landing zone end coordinate Y. |
z3 | float | Landing zone end coordinate Z. |
x4 | float | Landing zone start coordinate X. |
y4 | float | Landing zone start coordinate Y. |
z4 | float | Landing zone start coordinate Z. |
camX | float | Stuntcam (cinematic) coordinate x. |
camY | float | Stuntcam (cinematic) coordinate y. |
camZ | float | Stuntcam (cinematic) coordinate z. |
unk1 | int | Unknown, always 150. |
unk2 | int | Unknown, always 0. |
unk3 | int | Unknown, always 0. |
Quick Snippet: Get Coordinatesx1y1z1x2
x1y1z1x2Add 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
intReturns an integer value.