{"hash":"0xC9EA26893C9E4024","ns":"VEHICLE","name":"_SET_MISSION_TRAIN_WARP_TO_COORDS","slug":"_SET_MISSION_TRAIN_WARP_TO_COORDS","official":false,"named":true,"luaName":"SetMissionTrainWarpToCoords","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"train","type":"Vehicle"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"direction","type":"BOOL"}],"summary":"Can be used to rotate the train by setting the BOOL direction","descriptions":[{"source":"alloc8or","format":"text","body":"Notice: BOOL p4 was wrongly named takePassengers (?)\nCan be used to rotate the train by setting the BOOL direction"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_MISSION_TRAIN_WARP_TO_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_MISSION_TRAIN_WARP_TO_COORDS.md","snippets":{"lua":"SetMissionTrainWarpToCoords(train, x, y, z, direction)","luaInvoke":"Citizen.InvokeNative(0xC9EA26893C9E4024, train, x, y, z, direction)","js":"SetMissionTrainWarpToCoords(train, x, y, z, direction);","jsInvoke":"Citizen.invokeNative('0xC9EA26893C9E4024', train, x + 0.0000001, y + 0.0000001, z + 0.0000001, direction);","csharp":"Function.Call((Hash)0xC9EA26893C9E4024, train, x, y, z, direction);","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."]}}