NativeHub
All NativesModelsArtifactsCFXVehicle

Not affiliated with Rockstar Games or Take-Two Interactive. FiveM and Cfx.re are trademarks of their respective owners. cfxnatives.dev is an independent community project.

Maintained by uz-scripts

© 2026 cfxnatives.dev

contact@cfxnatives.dev
MISCClient
Artifact25963
Data sourced from jgscripts artifact-db

AddStuntJumpAngled

Docs
local retval = AddStuntJumpAngled(x1, y1, z1, x2, y2, z2, radius1, x3, y3, z3, x4, y4, z4, radius2, camX, camY, camZ, unk1, unk2, unk3)

Description

Creates a new stunt jump.

The radius1 and radius2 might actually not be a radius at all, but that's what it seems to me testing them in-game. But they may be 'angle' floats instead, considering this native is named ADD_STUNT_JUMP\_ANGLED.

Info about the specific 'parameter sections':

x1, y1, z1, x2, y2, z2 and radius1:

First coordinates are for the jump entry area, and the radius that will be checked around that area. So if you're not exactly within the coordinates, but you are within the outter radius limit then it will still register as entering the stunt jump. Note as mentioned above, the radius is just a guess, I'm not really sure about it's exact purpose.

x3, y3, z3, x4, y4, z4 and radius2:

Next part is the landing area, again starting with the left bottom (nearest to the stunt jump entry zone) coordinate, and the second one being the top right furthest away part of the landing area. Followed by another (most likely) radius float, this is usually slightly larger than the entry zone 'radius' float value, just because you have quite a lot of places where you can land (I'm guessing).

camX, camY and camZ:

The final coordinate in this native is the Camera position. Rotation and zoom/FOV is managed by the game itself, you just need to provide the camera location.

unk1, unk2 and unk3:

Not sure what these are for, but they're always 150, 0, 0 in decompiled scripts.

Visualized example in-game:

![](https://d.fivem.dev/2019-03-15\_18-24\_c7802\_846.png)

Here is a list of almost all of the stunt jumps from GTA V (taken from decompiled scripts): https://pastebin.com/EW1jBPkY

Parameters

NameTypeDescription
x1floatEntry zone bottom left corner x.
y1floatEntry zone bottom left corner y.
z1floatEntry zone bottom left corner z.
x2floatEntry zone top right corner x.
y2floatEntry zone top right corner y.
z2floatEntry zone top right corner z.
radius1floatProbably a "feather" radius for entry zone, you need to enter the jump within the min/max coordinates, or within this radius of those two coordinates.
x3floatLanding zone start corner coordinate x.
y3floatLanding zone start corner coordinate y.
z3floatLanding zone start corner coordinate z.
x4floatLanding zone end corner coordinate x.
y4floatLanding zone end corner coordinate y.
z4floatLanding zone end corner coordinate z.
radius2floatProbably a "feather" radius for landing zone, you need to land within the min/max coordinates, or within this radius of those two coordinates.
camXfloatStunt (cinematic) camera x position.
camYfloatStunt (cinematic) camera y position.
camZfloatStunt (cinematic) camera z position.
unk1intalways 150
unk2intalways 0
unk3intalways 0
📍Quick Snippet: Get Coordinates
x1y1z1x2

Add 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

int

Returns an integer value.

Examples

Official
local data = {
    entry = {
        leftbottom = vector3(-963.1714, -2778.506, 14.47828),
        righttop = vector3(-965.7361, -2777.121, 19.46395),
        radius = 8.0
    },
    landing = {
        start = vector3(-988.8297, -2830.789, 11.96478),
        ending = vector3(-1027.989, -2895.436, 16.95805),
        radius = 18.0
    },
    camcoords = vector3(-967.196, -2811.716, 14.5521),
    unk1 = 150,
    unk2 = 0,
    unk3 = 0

}

local stuntjump = AddStuntJumpAngled(
    data.entry.leftbottom, 
    data.entry.righttop,
    data.entry.radius,
    data.landing.start,
    data.landing.ending,
    data.landing.radius,
    data.camcoords,
    data.unk1,
    data.unk2,
    data.unk3
)

print("New stunt jump added, id: " .. stuntjump)

Citizen.CreateThread(function()
    while true do
        Wait(0)
        DrawLine(data.entry.leftbottom, data.entry.righttop, 255, 255, 255, 255)
        DrawLine(data.landing.start, data.landing.ending, 255, 0, 0, 255)
        DrawMarker(28, data.camcoords.x, data.camcoords.y, data.camcoords.z, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 255, 255, 255, 150, false, false, 2, false, nil, nil, false)
    end
end)

Server Artifacts

Data sourced from jgscripts artifact-db
Recommended25963
Known Issues24
25987-25988Node.js sandboxing seems to be causing issues for people - best to avoid for now
21547Multiple (unconfirmed) reports of server-sided natives throwing errors or causing crashes; best to avoid
17462Failed build, ignore
16276Multiple reports of issues loading JS within resources
14583-14716Crash when using the new onEntityBucketChange
14583-14862Timeouts due to latency units being in nanoseconds
13759-13890Mumble (voice) external connections blocked by default
13380-13458Server crashing due to integer encoding (PR#3235)
13079Failed Linux build (works OK if using Windows!)
12933-13045Still crashes (sometimes) when restarting resources due to Node.js 22
12913-12932Causes a crash when restarting Node.js 22
12767os.date() appends null terminator; can break Lua scripts
12651Failed Linux build, ignore
12509Failed build, ignore
12255Unconfirmed, but several reports of server-side issues that don't persist when downgrading; best to avoid
12160-12165Cannot use entity native calls in entityRemoved
12151Crashing if using newest title update (TU)
12092-12135SetPlayerModel may cause SIGSEGV crashes on some clients due to changes in player handling. 12031 and below works fine.
12078-12083Some clients will fail to connect with 'ReadBulk of header failed' error
10930Failed build, ignore
10268-10309sv_experimentalNetGameEventHandler enabled by default; can cause server crashing and reports of issues downgrading after upgrading
10191GetVehicleNumberPlateText server native broken, will cause issues with scripts involving vehicles
10072Crashing when players join
8509State bags not replicated to clients

CommunitySnippets

No snippets yet. Be the first to contribute!