Natives CAM 0xB5349E36C546509A float GET_CAM_SPLINE_PHASE (Cam cam); Documentation Community 0
Property
Value
Native Name
GET_CAM_SPLINE_PHASE
Hash
0xB5349E36C546509A
Return Type
float
Parameters
cam (Cam)
Description: ```
Can use this with SET_CAM_SPLINE_PHASE to set the float it this native returns.
(returns 1.0f when no nodes has been added, reached end of non existing spline)
Back to CAM Before you callCitizen.InvokeNative in CitizenFX Lua does not auto-marshal float/Vector3 returns — the result comes back wrong (community reports both a plain boolean and only-the-x-component-as-a-number); for these returns use the named Lua wrapper (e.g. GetEntityVelocity, GetPedBoneCoords, GetOffsetFromEntityInWorldCoords) or append Citizen.ResultAsVector() / Citizen.ResultAsFloat() as the final InvokeNative argument, and in JS/TS (no wrapper exists) Citizen.resultAsVector() / resultAsFloat() is mandatory; plain int/handle and void returns are unaffected.
Let your AI read the fine print. Native signatures, warnings, and community context. Directly in your editor.
Connect via MCP