{"hash":"0x12F6C6ED3EFF42DE","ns":"VEHICLE","name":"_SET_VELOCITY_FOR_BALLOON","slug":"_SET_VELOCITY_FOR_BALLOON","official":false,"named":true,"luaName":"SetVelocityForBalloon","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"balloon","type":"Vehicle"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"}],"summary":"Sets a hot air balloon velocity vector.","descriptions":[{"source":"alloc8or","format":"text","body":"Sets a hot air balloon velocity vector.\n\nNotes:\n- Balloon-only: gated to VEHICLE_TYPE_BALLOON.\n- Scripts pass GET_ENTITY_VELOCITY(...) from another entity to copy/match its motion.\n- Used together with _SET_BALLOON_ROUTE and _SET_BALLOON_SECONDARY_TARGET as part of scripted balloon movement/control."},{"source":"vorp","format":"text","body":"Params: coords = GET_ENTITY_VELOCITY\n_SET_VELOCITY*"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_VELOCITY_FOR_BALLOON","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_VELOCITY_FOR_BALLOON.md","snippets":{"lua":"SetVelocityForBalloon(balloon, x, y, z)","luaInvoke":"Citizen.InvokeNative(0x12F6C6ED3EFF42DE, balloon, x, y, z)","js":"SetVelocityForBalloon(balloon, x, y, z);","jsInvoke":"Citizen.invokeNative('0x12F6C6ED3EFF42DE', balloon, x + 0.0000001, y + 0.0000001, z + 0.0000001);","csharp":"Function.Call((Hash)0x12F6C6ED3EFF42DE, balloon, x, y, z);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}