{"hash":"0x8DF5F6A19F99F0D5","ns":"VEHICLE","name":"_GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX","slug":"_GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX","official":false,"named":true,"luaName":"GetTrainModelFromTrainConfigByCarIndex","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"trainConfig","type":"Hash"},{"name":"trainCarIndex","type":"int"}],"summary":"Returns modelHash","descriptions":[{"source":"alloc8or","format":"text","body":"Returns modelHash"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_GET_TRAIN_MODEL_FROM_TRAIN_CONFIG_BY_CAR_INDEX.md","snippets":{"lua":"local retval = GetTrainModelFromTrainConfigByCarIndex(trainConfig, trainCarIndex)","luaInvoke":"local retval = Citizen.InvokeNative(0x8DF5F6A19F99F0D5, trainConfig, trainCarIndex, Citizen.ResultAsInteger())","js":"const retval = GetTrainModelFromTrainConfigByCarIndex(trainConfig, trainCarIndex);","jsInvoke":"const retval = Citizen.invokeNative('0x8DF5F6A19F99F0D5', trainConfig, trainCarIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x8DF5F6A19F99F0D5, trainConfig, trainCarIndex);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}