{"hash":"0xDFBA6BBFF7CCAFBB","ns":"VEHICLE","name":"SET_TRAIN_SPEED","slug":"SET_TRAIN_SPEED","official":true,"named":true,"luaName":"SetTrainSpeed","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"train","type":"Vehicle"},{"name":"speed","type":"float"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0xAA0BC91BE0B796E3","gtaJhash":"0xDFC35E4D","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/VEHICLE/SET_TRAIN_SPEED","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/SET_TRAIN_SPEED.md","snippets":{"lua":"SetTrainSpeed(train, speed)","luaInvoke":"Citizen.InvokeNative(0xDFBA6BBFF7CCAFBB, train, speed)","js":"SetTrainSpeed(train, speed);","jsInvoke":"Citizen.invokeNative('0xDFBA6BBFF7CCAFBB', train, speed + 0.0000001);","csharp":"Function.Call((Hash)0xDFBA6BBFF7CCAFBB, train, speed);","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."]}}